diff --git a/README.md b/README.md index f584db03e..97e2f0d0e 100644 --- a/README.md +++ b/README.md @@ -88,6 +88,7 @@ React.render(c, container); |optionLabelProp | which prop value of option will render as content of select | String | 'value' | |defaultValue | initial selected option(s) | String/Array | - | |value | current selected option(s) | String/Array/{key:String, label:React.Node}/Array<{key, label}> | - | +|firstActiveValue | first active value when there is no value | String/Array | - | |labelInValue| whether to embed label in value, see above value type | Bool | false | |onChange | called when select an option or input value change(combobox) | function(value) | - | |onSearch | called when input changed | function | - | diff --git a/examples/single.js b/examples/single.js index fb9c3606d..93221468a 100644 --- a/examples/single.js +++ b/examples/single.js @@ -60,6 +60,7 @@ class Test extends React.Component { optionLabelProp="children" optionFilterProp="text" onChange={this.onChange} + firstActiveValue="2" >