You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Adding click shortcut for ENTER key on button will fire the click event twice when the button is focused, even when disallowing browser default #14187
Seems like that on the server side we always receive two separated events: a click triggered by button because of pressing Enter key and the key down event.
When you use ENTER as the shortcut key, it's still the same. As far as I understand, the bugfix only works if you use a modifier key in combination with ENTER for the shortcut key? If you only use ENTER like in this example, the described misbehaviour is still there, right?
Activity
mcollovati commentedon Jul 22, 2022
Seems like that on the server side we always receive two separated events: a
clicktriggered by button because of pressingEnterkey and thekey downevent.Similar to #14190
web-padawan commentedon Mar 2, 2023
This was again reported at vaadin/flow-components#4757. Here's a recording from that issue:
circlesmiler commentedon Dec 13, 2023
@web-padawan @TatuLund How can vaadin/web-components#6404 fix this bug?
When you use
ENTERas the shortcut key, it's still the same. As far as I understand, the bugfix only works if you use a modifier key in combination withENTERfor the shortcut key? If you only useENTERlike in this example, the described misbehaviour is still there, right?