Skip to content

Commit

Permalink
handle error in creatable multi select text input
Browse files Browse the repository at this point in the history
  • Loading branch information
ankush29 committed Jun 29, 2019
1 parent 115d4fa commit aabb6e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/react-select/src/Select.js
Original file line number Diff line number Diff line change
Expand Up @@ -672,7 +672,7 @@ export default class Select extends Component<Props, State> {
const newValue = selectValue.filter(
i => this.getOptionValue(i) !== candidate
);
this.onChange(newValue.length ? newValue : null, {
this.onChange(newValue.length ? newValue : [], {
action: 'remove-value',
removedValue,
});
Expand Down

0 comments on commit aabb6e3

Please sign in to comment.