<select> element automatically selects option under cursor when it opens
This problem has been bothering me for a while. Here is what is happening:
1. Click <select> element.
2. The <select> element opens and the <option> list in the <optgroup> is shown.
2. The <option> under the cursor is selected without clicking.
3. The <select> element closes.
This doesn't happen if the <option> under the cursor is already selected. It also doesn't happen if I click and hold to open the <select> element and drag the mouse away before releasing the click.
I have already tried Safe Mode and switching off Hardware Acceleration.
This doesn't happen on Safari or Chrome.
I am running Firefox 65.0 on macOS 10.14.2
Any ideas?
chap_p द्वारा
All Replies (4)
Does this only happen on specific websites? For example, does it happen on this page?
Hi Wesley. Unfortunately, yes it still happens on that website.
It's almost like the onmouseup event from the initial click isn't fired until the <select> element is opened, and it's registered as a click on one of the <option> elements.
Start Firefox in Safe Mode to check if one of the extensions ("3-bar" menu button or Tools -> Add-ons -> Extensions) or if hardware acceleration is is causing the problem.
- switch to the DEFAULT theme: "3-bar" menu button or Tools -> Add-ons -> Appearance
- do NOT click the "Refresh Firefox" button on the Safe Mode start window
Hi Cor-el, I've already tried disabling Add-ons one at a time to see if anything helped, and Ive tried the same while also toggling hardware acceleration (I quit and re-launched the browser each time too). I've also tested Safe Mode and the problem persists.
I'm quite lost. I'm fairly sure it's not a problem with my mouse as the problem is completely isolated to this specific case while using Firefox.