Add FormField.getSelectedElement()
This commit is contained in:
parent
4d34bb1599
commit
b90e1d62e0
1 changed files with 3 additions and 0 deletions
|
@ -51,6 +51,9 @@ var FormField = React.createClass({
|
|||
return this.refs.field.value;
|
||||
}
|
||||
},
|
||||
getSelectedElement: function() {
|
||||
return this.refs.field.options[this.refs.field.selectedIndex];
|
||||
},
|
||||
render: function() {
|
||||
var warningStyle = Object.assign({}, requiredFieldWarningStyle);
|
||||
if (this.state.warningState == 'fading') {
|
||||
|
|
Loading…
Reference in a new issue