Clicking on a dropdown or on a context menu immediately selects the first option
Categories
(Core :: Layout: Form Controls, defect)
Tracking
()
People
(Reporter: liam.ozog, Unassigned)
References
Details
Attachments
(2 files)
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:84.0) Gecko/20100101 Firefox/84.0
Steps to reproduce:
Clicked on a dropdown to open it
Actual results:
The first option in the menu that pops up gets clicked on.
In the attached video, I clicked once to open the dropdown, and you can see that the "2020" option gets selected by itself. The second time I open the dropdown, it doesn't happen.
Expected results:
The menu that pops up should stay open until I select an option or click away
Updated•5 years ago
|
I figured out how to trigger it. It happens with right-click context menus, too. But only if the cursor is hovering over an option when the dropdown opens.
I'll attach another screen capture. First, I right-click a link to open a context menu, and it works as expected. Next, I right-click to open it and move the cursor to be over the first option as it opens and it exhibits the bugged behaviour.
Triggering the bug in a context menu. See my previous comment
Updated•5 years ago
|
Comment 3•5 years ago
•
|
||
I'm pretty sure the dropdown variant of this bug is already filed but I'm not sure we knew the same issue applied to context menus.
Updated•5 years ago
|
Comment 4•5 years ago
|
||
I confirm that clicking on a dropdown or context menu - automatically opens the first option that was moused hovered. Reproduced this issue on Mac OS X 10.15 and Max OS X 11.1 using a magic mouse on the latest Nightly, Firefox 84.0.2, Firefox 85 beta, and Firefox 78.7.0 esr.
This issue is also reproducible on Chrome 87.0.4280.88 but not on Safari 14.0.2.
Emilio, do you consider this as a dupe of Bug 1400750?
Updated•5 years ago
|
Comment 5•5 years ago
|
||
Hmmm, probably? Though this seems the behavior of other browsers as well, at least on Linux.
On GTK, context menus seem to ignore the mouseup if it happens "soon-ish", otherwise a left mouseup would close the menu.
I guess we have this code to try to ignore the mouseup, but maybe it's not working as expected?
Let's close as a dupe of bug 1400750, I can poke a bit when I have some time after exams.
Updated•4 years ago
|
Description
•