material-components-web-elm
material-components-web-elm copied to clipboard
Pressing the Enter key in a dialog may generate two messages
Assume a Dialog
with a Button
that is marked as Dialog.defaultAction
,
and a focus that is on another or the same Button
in the dialog (either via Dialog.initialFocus
or after tabbing to this button).
Then on pressing the Enter key the dialog generates two consecutive Msgs, one for the default button, and one for the focused button.
Not sure, which message I would expect, but pretty sure that I would expect only one message.