Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
handleInputKeyDown = e => {
const { value, multiple, onChange } = this.props;
// remove last item when trigger backspace
if (multiple && e.keyCode === 8 && !this.state.inputValue) {
onChange(removeLast(value));
}
};