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') {
onChange(value)
}
if (action === 'pop-value') {
onChange(null)
}
}
render() {
@ -73,10 +76,10 @@ class Select extends Component<Props> {
isClearable={isClearable}
isSearchable={isSearchable}
blurInputOnSelect={false}
onChange={this.handleChange}
backspaceRemovesValue
menuShouldBlockScroll
{...props}
onChange={this.handleChange}
/>
)
}

Loading…
Cancel
Save