fix autocomplete activating on react>=15.1 if no direction

old
farawayer 2016-07-15 19:48:01 +03:00
parent 672429f806
commit f3b460eabd
2 changed files with 1 additions and 3 deletions

View File

@ -72,7 +72,6 @@ const factory = (Chip, Input) => {
const direction = this.calculateDirection();
if (this.state.direction !== direction) {
this.setState({ direction });
return false;
}
}
return true;

View File

@ -139,7 +139,6 @@ var factory = function factory(Chip, Input) {
var direction = this.calculateDirection();
if (this.state.direction !== direction) {
this.setState({ direction: direction });
return false;
}
}
return true;
@ -473,4 +472,4 @@ var factory = function factory(Chip, Input) {
var Autocomplete = factory(_Chip2.default, _Input2.default);
exports.default = (0, _reactCssThemr.themr)(_identifiers.AUTOCOMPLETE)(Autocomplete);
exports.autocompleteFactory = factory;
exports.Autocomplete = Autocomplete;
exports.Autocomplete = Autocomplete;