Skip to content

Commit

Permalink
FIX (single): allow to clear with backspace, closes #141
Browse files Browse the repository at this point in the history
  • Loading branch information
sanusart committed Nov 29, 2020
1 parent dccf439 commit df466b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.js
Expand Up @@ -465,7 +465,7 @@ export class Select extends Component {
});
}

if (backspace && props.multi && props.backspaceDelete && this.getInputSize() === 0) {
if (backspace && props.backspaceDelete && this.getInputSize() === 0) {
this.setState({
values: this.state.values.slice(0, -1)
});
Expand Down

0 comments on commit df466b8

Please sign in to comment.