The dropdown loses focus unexpectedly when clicking inside it Using Keyboard
- Open a page that has a Chosen select dropdown
- Navigate on the Chosen dropdown to open it using keyboard
- Select any option from the dropdown list using keyboard
- After Selection of Drop-Down Using Keyboard Element Will Lose Focus
here is an issue https://github.com/noli42/chosen/issues/10
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | Screenshot-Test-Choosen.png | 32.61 KB | dkmishra |
Comments
Comment #2
dkmishra commentedI tested this issue on my local environment but was unable to reproduce the focus loss behavior after keyboard selection.
Tested with:
Drupal version: 11.3
Chosen version/module branch: 5.0.5
Browser: Chrome
OS: Linux
Steps tested:
Opened a page with a Chosen select field
Opened the dropdown using keyboard navigation
Selected an option using arrow keys + Enter
Focus remained on the Chosen element after selection
Comment #3
nagy.balint commentedThe issue was fixed in the library.
Unfortunately we cannot force the library update in this module, we can only change the version number in the readme and drush commands.
Comment #4
anmol singh commentedI think in
composer.libraries.jsonupdate the library version and it will automatically update the code.Comment #5
nagy.balint commentedThat only works if you use wikimedia/composer-merge-plugin, but most users don't.
Comment #7
nagy.balint commented