Browse Source

Fix Select onChange behaviour

master
meriadec 7 years ago
parent
commit
1fbeb4ef03
No known key found for this signature in database GPG Key ID: 1D2FC2305E2CB399
  1. 5
      src/components/base/Select/index.js

5
src/components/base/Select/index.js

@ -40,6 +40,9 @@ class Select extends Component<Props> {
if (action === 'select-option') { if (action === 'select-option') {
onChange(value) onChange(value)
} }
if (action === 'pop-value') {
onChange(null)
}
} }
render() { render() {
@ -73,10 +76,10 @@ class Select extends Component<Props> {
isClearable={isClearable} isClearable={isClearable}
isSearchable={isSearchable} isSearchable={isSearchable}
blurInputOnSelect={false} blurInputOnSelect={false}
onChange={this.handleChange}
backspaceRemovesValue backspaceRemovesValue
menuShouldBlockScroll menuShouldBlockScroll
{...props} {...props}
onChange={this.handleChange}
/> />
) )
} }

Loading…
Cancel
Save