Disabled child element doesn't produce mousedown, mouseup and click events
Categories
(Core :: DOM: Events, defect, P3)
Tracking
()
| Webcompat Priority | P3 |
| Tracking | Status | |
|---|---|---|
| firefox45 | --- | affected |
People
(Reporter: sebo, Unassigned)
References
Details
Attachments
(1 file)
|
424 bytes,
text/html
|
Details |
| Reporter | ||
Updated•10 years ago
|
Comment 1•10 years ago
|
||
| Reporter | ||
Comment 2•10 years ago
|
||
Comment 3•10 years ago
|
||
| Reporter | ||
Comment 4•10 years ago
|
||
Comment 5•8 years ago
|
||
Updated•7 years ago
|
Comment 7•6 years ago
|
||
This is now causing breakage on Yahoo Mail's account settings page.
Comment 8•6 years ago
|
||
Migrating Webcompat whiteboard priorities to project flags. See bug 1547409.
Comment 9•6 years ago
|
||
See bug 1547409. Migrating whiteboard priority tags to program flags.
Updated•6 years ago
|
Updated•6 years ago
|
Updated•6 years ago
|
Updated•5 years ago
|
Updated•5 years ago
|
Updated•4 years ago
|
Comment 10•3 years ago
|
||
I can't speak for the standard, but the current state seems ridiculus. Things like "click anywhere else to close" are very common and with this, the document just gets a blind spot for clicks on any disabled component. Not even window recieves that mousedown anymore.
It even breaks other expectations of event order. E.g. the focus still moves, without a chance to preventDefault on the mousedown.
Either it should behave like chrome or just flatout dispatch the event on the closest non disabled parent, or at the very least on the element that would receive focus.
FFs behavior might be the most consistent out of the available browsers, but it is the one that breaks my code that expects to capture mousedown events regardless of what its children are doing, chrome doesn't.
My current workaround is to capture the focus event, too. But that only works because I happen to have another focusable element below.
Comment 11•3 years ago
|
||
See https://github.com/web-platform-tests/interop-2022/issues/11, there's probably going to be ongoing interop work in this area across all engines.
There's newer bug with more information:
Description
•