Skip to content

Commit

Permalink
Check if event.detail === undefined. Fixes #246.
Browse files Browse the repository at this point in the history
  • Loading branch information
moroshko committed Sep 16, 2016
1 parent 50eb40f commit 48226f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Autosuggest.js
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ class Autosuggest extends Component {
this.justClickedOnSuggestionsContainer = false;

let node =
event.detail.target || // This is for testing only. Please show me a better way to emulate this.
event.detail && event.detail.target || // This is for testing only. Please show me a better way to emulate this.
event.target;

do {
Expand Down

0 comments on commit 48226f3

Please sign in to comment.