material-ui-chip-input
Advanced tools
Comparing version 0.18.2 to 0.18.3
@@ -320,3 +320,2 @@ 'use strict'; | ||
_this2.handleAddChip(event.target.value); | ||
_this2.autoComplete.setState({ searchText: '' }); | ||
_this2.autoComplete.forceUpdate(); | ||
@@ -334,6 +333,2 @@ } else { | ||
_this2.handleAddChip(chosenRequest); | ||
_this2.autoComplete.setState({ | ||
searchText: '' | ||
}); | ||
_this2.autoComplete.forceUpdate(); | ||
@@ -406,3 +401,3 @@ _this2.autoComplete.close(); | ||
if (this.props.onBeforeRequestAdd && !this.props.onBeforeRequestAdd(chip)) { | ||
return this.setState({ preventChipCreation: true, inputValue: this.autoComplete.state.searchText }); | ||
return this.setState({ preventChipCreation: true }); | ||
} | ||
@@ -409,0 +404,0 @@ this.autoComplete.setState({ searchText: '' }); |
{ | ||
"name": "material-ui-chip-input", | ||
"version": "0.18.2", | ||
"version": "0.18.3", | ||
"description": "A chip input field using Material-UI.", | ||
@@ -5,0 +5,0 @@ "main": "lib/ChipInput.js", |
390071
634