Skip to content

Commit

Permalink
Merge pull request react-toolbox#994 from borela/dev
Browse files Browse the repository at this point in the history
Pass event to selection.
  • Loading branch information
javivelasco authored Nov 25, 2016
2 parents c5e55bb + 5c79ef0 commit 5c24872
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions components/autocomplete/Autocomplete.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,8 @@ const factory = (Chip, Input) => {
}
};

handleMouseDown = event => {
this.selectOrCreateActiveItem();
handleMouseDown = (event) => {
this.selectOrCreateActiveItem(event);
}

handleQueryBlur = (event) => {
Expand Down Expand Up @@ -127,7 +127,7 @@ const factory = (Chip, Input) => {
}

if (event.which === 13) {
this.selectOrCreateActiveItem();
this.selectOrCreateActiveItem(event);
}
};

Expand Down Expand Up @@ -167,7 +167,7 @@ const factory = (Chip, Input) => {
return query_value;
}

selectOrCreateActiveItem () {
selectOrCreateActiveItem (event) {
let target = this.state.active;
if (!target) {
target = this.props.allowCreate
Expand Down

0 comments on commit 5c24872

Please sign in to comment.