QSelect - Navigating throung Qselect with "Enter" key very fast never put focus on next QSelect #17578
Labels
area/components
bug/1-repro-available
A reproduction is available and needs to be confirmed.
flavour/quasar-cli-webpack
kind/bug 🐞
Qv2 🔝
Quasar v2 issues
What happened?
We have two key requirements in the project:
Users need to navigate quickly as they are very familiar with the application.
Navigation between fields is done using the "Enter" key.
On QSelect, we are listening to the @keydown.enter.prevent event and manually setting focus to the next input. This works fine, except when we repeatedly press the "Enter" key in quick succession.
When adding logs to the focusin and focusout events, we noticed that they are never called.
I believe this issue might be related to the waitFlags in the focus manager, which prevents focus from being set immediately. Additionally, the showPortal function in use-portal seems to add a FocusWaitFlag each time the QSelect menu is shown or hidden (triggered by pressing the Enter key in QSelect).
What did you expect to happen?
Set focus on the next QSelect instead of getting stuck on the current one when the Enter key is pressed repeatedly.
Reproduction URL
https://stackblitz.com/edit/quasarframework-webpack-1o7tn6?file=src%2Fpages%2FIndexPage.vue
How to reproduce?
Flavour
Quasar CLI with Webpack (@quasar/cli | @quasar/app-webpack)
Areas
Components (quasar)
Platforms/Browsers
Chrome
Quasar info output
Relevant log output
No response
Additional context
The URL isn't woring because this is a huge project, but Main code use arround the bug is accessible
The text was updated successfully, but these errors were encountered: