Focus lost when re-assigning a slot with shadow DOM slot mutation
Categories
(Core :: DOM: Core & HTML, defect)
Tracking
()
People
(Reporter: serguey.kulikov, Unassigned)
References
Details
Attachments
(1 file)
|
2.01 KB,
text/html
|
Details |
Steps to reproduce:
Reproduction: https://codepen.io/web-padawan/pen/OPbyLQM or see .html attached.
Problem: removing a <slot> element that a focused light-DOM child was previously assigned to (but is no longer, after changing the attribute to a different existing slot).
Actual results:
Focus silently moves to <body> without firing blur / focusout events.
Expected results:
Focus should remain on the element (it is still in the DOM and assigned to an existing slot). Removing an unrelated, no longer used slot should not affect focus.
Comment 1•4 months ago
|
||
The Bugbug bot thinks this bug should belong to the 'Core::DOM: Core & HTML' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.
Comment 2•4 months ago
|
||
Yeah effectively the same root cause (and fix if we take that) as bug 2037337.
Description
•