a11y-click-events-have-key-events
incorrectly repoted on <dialog>
elements.
#8283
Labels
a11y-click-events-have-key-events
incorrectly repoted on <dialog>
elements.
#8283
Describe the bug
By default, a dialog element shown via
dialog.showModal()
can be closed by pressing escape.If I add an
on:click
handler to the dialog to enable clicking the background to dismiss it, I get ana11y-click-events-have-key-events
warning on the dialog, despite being able to interact with the dialog via keyboard.I wouldn't mind needing to explicitly disable the warning, but I can't just use
<!-- svelte-ignore a11y-click-events-have-key-events -->
as that also disables the warnings for all children of the dialog as well.
Reproduction
Logs
No response
System Info
npmPackages: svelte: ^3.55.1 => 3.55.1
The text was updated successfully, but these errors were encountered: