diff --git a/README.md b/README.md index 97e2f0d0e..56b3b782e 100644 --- a/README.md +++ b/README.md @@ -90,6 +90,7 @@ React.render(c, container); |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 | +|backfill| whether backfill select option to search input (Only works in single and combobox mode) | Bool | false | |onChange | called when select an option or input value change(combobox) | function(value) | - | |onSearch | called when input changed | function | - | |onBlur | called when blur | function | - | diff --git a/examples/combobox.js b/examples/combobox.js index 523644f6b..d64437e3d 100644 --- a/examples/combobox.js +++ b/examples/combobox.js @@ -8,7 +8,7 @@ import 'rc-select/assets/index.less'; class Demo extends React.Component { state = { disabled: false, - value: 'l', + value: '', }; onChange = (value) => { @@ -45,12 +45,12 @@ class Demo extends React.Component { style={{ width: 500 }} onChange={this.onChange} onSelect={this.onSelect} - defaultActiveFirstOption={false} notFoundContent="" allowClear placeholder="please select" value={this.state.value} combobox + backfill >