Closed
Bug 1433887
Opened 7 years ago
Closed 7 years ago
Events don't seem to bubble from children of a button when they're absolutely positioned
Categories
(Core :: DOM: Events, defect)
Core
DOM: Events
Tracking
()
RESOLVED
DUPLICATE
of bug 1089326
People
(Reporter: julienw, Unassigned)
Details
Attachments
(1 file, 1 obsolete file)
836 bytes,
text/html
|
Details |
STR: 1. Open the attachment. 2. Click on the button itself [OK] Some log should show up in the page. 3. Click on the 2 lines of text "click me I'm fixed" or "click me I'm absolute" [KO] Nothing happens. Note that this seems to work as expected in Chrome. This works also when we use a normal link (<a>) instead of a button. This is not a recent bug: I ran the testcase in v57 and v52, the bug reproduces in those versions too.
Reporter | ||
Comment 1•7 years ago
|
||
Reporter | ||
Updated•7 years ago
|
status-firefox58:
--- → affected
status-firefox59:
--- → affected
status-firefox-esr52:
--- → affected
Reporter | ||
Updated•7 years ago
|
OS: Unspecified → All
Hardware: Unspecified → All
Updated•7 years ago
|
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → DUPLICATE
Reporter | ||
Comment 3•7 years ago
|
||
The issue happens with "position: relative" too if the element is out of the button.
Reporter | ||
Comment 4•7 years ago
|
||
Thanks Olli. I noticed there are 2 different bugs, so you might want to keep this bug. Bug 1: non-positioned children of a button never see the event. If they have a listener registered, the listener never runs. I believe this is bug 1089326. But the button itself is triggered. Bug 2: Where there are children of a button that are positioned out of the button, clicking on them has no effect whatsoever. This is what this bug was about. I realize they're similar: both bugs relate to the fact that a button's children are non-interactive.
Reporter | ||
Updated•7 years ago
|
Attachment #8946221 -
Attachment is obsolete: true
You need to log in
before you can comment on or make changes to this bug.
Description
•