fix autocomplete activating on react>=15.1 if no direction
parent
672429f806
commit
f3b460eabd
|
@ -72,7 +72,6 @@ const factory = (Chip, Input) => {
|
|||
const direction = this.calculateDirection();
|
||||
if (this.state.direction !== direction) {
|
||||
this.setState({ direction });
|
||||
return false;
|
||||
}
|
||||
}
|
||||
return true;
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue