[Webkit-unassigned] [Bug 229895] Clicking button drops focus entirely
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Thu Apr 27 22:25:39 PDT 2023
https://bugs.webkit.org/show_bug.cgi?id=229895
Matt Stow <matt at mattstow.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |matt at mattstow.com
--- Comment #8 from Matt Stow <matt at mattstow.com> ---
It's not that it drops focus entirely, but it focuses it the nearest focusable ancestor, which is actually even worse.
If you have a `<main tabindex="-1">` for example that is focused as you navigate your SPA, `<main>` will receive focus from the button elements. Otherwise it falls back to `<body>`.
Here's a simple example: https://codepen.io/stowball/pen/gOrMowN
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20230428/0d59227d/attachment-0001.htm>
More information about the webkit-unassigned
mailing list