From 1fbeb4ef03d86534ffb4b47b66e75fe4fbb2f27d Mon Sep 17 00:00:00 2001 From: meriadec Date: Tue, 12 Jun 2018 17:23:17 +0200 Subject: [PATCH] Fix Select onChange behaviour --- src/components/base/Select/index.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/components/base/Select/index.js b/src/components/base/Select/index.js index 910d6a58..15e1b736 100644 --- a/src/components/base/Select/index.js +++ b/src/components/base/Select/index.js @@ -40,6 +40,9 @@ class Select extends Component { if (action === 'select-option') { onChange(value) } + if (action === 'pop-value') { + onChange(null) + } } render() { @@ -73,10 +76,10 @@ class Select extends Component { isClearable={isClearable} isSearchable={isSearchable} blurInputOnSelect={false} - onChange={this.handleChange} backspaceRemovesValue menuShouldBlockScroll {...props} + onChange={this.handleChange} /> ) }