+
-
);
},
@@ -86,8 +95,8 @@ var FeatureForm = React.createClass({
e.preventDefault();
var feature = {
- name: this.refs.name.getDOMNode().value,
- description: this.refs.description.getDOMNode().value,
+ name: this.refs.name.getValue(),
+ description: this.refs.description.getValue(),
strategy: this.refs.strategy.getDOMNode().value,
enabled: this.refs.enabled.getDOMNode().checked
};
diff --git a/public/js/components/form/TextInput.jsx b/public/js/components/form/TextInput.jsx
index 49af299b30..687774510f 100644
--- a/public/js/components/form/TextInput.jsx
+++ b/public/js/components/form/TextInput.jsx
@@ -35,6 +35,7 @@ var TextInput = React.createClass({
name={this.props.name}
defaultValue={this.props.value}
placeholder={this.props.placeholder}
+ disabled={this.props.disabled}
ref="input" />
diff --git a/public/js/components/strategy/StrategyForm.jsx b/public/js/components/strategy/StrategyForm.jsx
index 55380f59fa..dd65827c04 100644
--- a/public/js/components/strategy/StrategyForm.jsx
+++ b/public/js/components/strategy/StrategyForm.jsx
@@ -58,7 +58,7 @@ var StrategyForm = React.createClass({
render: function() {
return (
-