Skip to content

Commit

Permalink
Use currentTarget instead of target
Browse files Browse the repository at this point in the history
  • Loading branch information
adan-ferguson committed Nov 1, 2019
1 parent 487174c commit 821df50
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/views/autoCompleteView.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ const onSelection = (event, field, resultsList, feedback, resultsValues, selecti
if (event.keyCode === keys.ENTER) {
return value.index === Number(selection.getAttribute(dataAttribute));
} else if (event.type === "mousedown") {
return value.index === Number(event.target.getAttribute(dataAttribute));
return value.index === Number(event.currentTarget.getAttribute(dataAttribute));
}
}),
});
Expand Down

0 comments on commit 821df50

Please sign in to comment.