Preventing default on enter handler as it seems to call click handlers now. Fixes #856
This commit is contained in:
parent
b0cc6e7c2f
commit
07711aaecc
1 changed files with 1 additions and 0 deletions
|
@ -168,6 +168,7 @@ const Logic = {
|
||||||
});
|
});
|
||||||
element.addEventListener("keydown", (e) => {
|
element.addEventListener("keydown", (e) => {
|
||||||
if (e.keyCode === 13) {
|
if (e.keyCode === 13) {
|
||||||
|
e.preventDefault();
|
||||||
handler(e);
|
handler(e);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Reference in a new issue