Merge pull request #859 from jonathanKingston/prevent-enter-handler-calling-click

Preventing default on enter handler as it seems to call click handler…
This commit is contained in:
luke crouch 2017-09-26 10:46:53 -05:00 committed by GitHub
commit c1e9cc3c56

View file

@ -161,6 +161,7 @@ const Logic = {
});
element.addEventListener("keydown", (e) => {
if (e.keyCode === 13) {
e.preventDefault();
handler(e);
}
});