Space Bar pressing on radio-button fires click event even preventDefault() and stopPropogation() activated
Categories
(Core :: DOM: Core & HTML, defect, P3)
Tracking
()
People
(Reporter: Xgeneration, Unassigned)
References
Details
Attachments
(2 files)
Reporter | ||
Comment 1•7 years ago
|
||
Comment 2•7 years ago
|
||
Comment 3•7 years ago
|
||
Comment 4•7 years ago
|
||
Assignee | ||
Updated•6 years ago
|
Updated•6 years ago
|
Updated•6 years ago
|
Hi!
I'm just popping in to confirm I see this issue in FF 96.0.3 when trying to use event.preventDefault()
on a button element. I'm unable to prevent the click when it's triggered with a space bar. Preventing it when triggered via Enter works as expected.
Seems as though this ticket is very old. Is there any hopes in reviving this and getting a fix in?
Thanks!
Comment 7•4 years ago
|
||
Comment 8•4 years ago
|
||
(In reply to kee-oth from comment #6)
I'm just popping in to confirm I see this issue in FF 96.0.3 when trying to use
event.preventDefault()
on a button element. I'm unable to prevent the click when it's triggered with a space bar. Preventing it when triggered via Enter works as expected.
That seems like a different issue from comment 0. Comment 0 seems fixed, or at least I can't activate the checkbox with spacebar or enter in comment 7 (on Nightly at least).
Comment 9•4 years ago
|
||
Comment 10•4 years ago
|
||
Can you attach a test-case for what you're seeing? Comment 9 seems to behave as expected here too, on Nightly.
Comment 11•3 years ago
|
||
Thank you for the quick reply! Your test case works for me and I'm unable to recreate my issue in smaller test-cases at the moment. I'm only experiencing it in my more complex project so some other tech may be the culprit. I will report back if I'm able to recreate the issue in a test-case that points to Firefox.
And regarding if this was the correct ticket to post on or not, I posted here because the below ticket was marked as a duplicate of this one:
https://bugzilla.mozilla.org/show_bug.cgi?id=1552419
Thanks again!
Comment 12•3 years ago
|
||
(In reply to kee-oth from comment #11)
Thank you for the quick reply! Your test case works for me and I'm unable to recreate my issue in smaller test-cases at the moment. I'm only experiencing it in my more complex project so some other tech may be the culprit. I will report back if I'm able to recreate the issue in a test-case that points to Firefox.
And regarding if this was the correct ticket to post on or not, I posted here because the below ticket was marked as a duplicate of this one:
https://bugzilla.mozilla.org/show_bug.cgi?id=1552419
Ok, comment 0 and the test-case in bug 1552419 seem fixed here. If someone wants to run mozregression to see what exactly fixed it that'd be great, but let's call this WORKSFORME for now.
If you manage to reproduce the issue in a test-case and it is a firefox issue feel free to file a new bug and cc me, happy to take a look :)
Cheers.
Description
•