Open
Bug 764589
Opened 13 years ago
Updated 2 years ago
Input:focus with relative position does not fire click event
Categories
(Core :: DOM: UI Events & Focus Handling, defect)
Tracking
()
NEW
People
(Reporter: jason, Unassigned)
References
Details
(Whiteboard: dom-triaged)
Attachments
(3 files)
User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:13.0) Gecko/20100101 Firefox/13.0
Build ID: 20120601045813
Steps to reproduce:
Created an input that changes its position to relative upon focus. If position: relative; is removed from the :focus styling the click event fires as expected.
Actual results:
Click event did bubble up the DOM as expected.
Expected results:
Expected click event to fire.
Not sure if #652531 may be related, but it looks fairly similar to this.
Comment 2•10 years ago
|
||
Looks like duplicate of bug 493416
Updated•9 years ago
|
Product: Firefox → Core
Comment 3•9 years ago
|
||
Comment 4•9 years ago
|
||
User Agent Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:46.0) Gecko/20100101 Firefox/46.0
Version 46.0a1
Build ID 20160112030207
Channel nightly
Jason,
Thank you for taking time to report this.
Are you still able to reproduce this in the latest version ? I attached what I see in the console window for the html given above.
Flags: needinfo?(jason)
Abe,
I'm still able to replicate this on nightly.
User Agent Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:46.0) Gecko/20100101 Firefox/46.0
Version 46.0a1 (2016-01-15)
Build ID 20160115030235
To clarify, the issue happens only when you click on the input for it's initial focus. Subsequent clicks after the input already fire the click event correctly, as well as when you click anywhere else on the body.
Flags: needinfo?(jason)
Sorry, meant to say "Subsequent clicks after the input already has focus fire the click event correctly"
Comment 7•9 years ago
|
||
User Agent Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:46.0) Gecko/20100101 Firefox/46.0
Version 46.0a1 (2016-01-15)
Build ID 20160121030235
Channel nightly
Yes, I can reproduce this. The first click does not fire the click event.
Status: UNCONFIRMED → NEW
Component: Untriaged → Event Handling
Ever confirmed: true
Updated•9 years ago
|
Attachment #632882 -
Attachment mime type: text/plain → text/html
Flags: needinfo?(bugs)
Comment 9•9 years ago
|
||
Yeah, I'm pretty sure the issue is that we recreate the frame for the input and don't detect the mouseup happens on the same element.
Updated•9 years ago
|
Whiteboard: dom-noted → dom-triaged
Comment 10•6 years ago
|
||
I've noticed that this also happens when setting float (instead of position). Additionally, changing those attributes (or even just setting content: "") on focus for :before/:after pseudo elements also exhibits this behavior.
Assignee | ||
Updated•6 years ago
|
Component: Event Handling → User events and focus handling
Updated•2 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•