Option to disable tab selection on q-select #17356
-
SummaryIntroduce a new property, MotivationIn certain use cases, the default behavior of the tab key confirming a q-select option on hover can lead to unintended selections and disrupt the user experience. Providing a way to disable this behavior will allow developers to have more control over the interaction model of their applications, leading to improved usability and preventing accidental selections. Proposed SolutionAdd a new Boolean property, Implementation Details
Usage Example<q-select
v-model="selectedOption"
:options="options"
disableTabSelection
/> In the above example, the 'q-select' component will not confirm the hovered option when the tab key is pressed. Benefits
Potential Drawbacks
ConclusionAdding the |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 6 replies
-
this is because q-select uses q-menu and q-list. when you tab-out of it, it closes it(and possibly picks the currently selected option). that is normal behavior, even described here https://quasar.dev/vue-components/select#keyboard-navigation you can see the native behavior is the same https://www.w3schools.com/tags/tryit.asp?filename=tryhtml_select |
Beta Was this translation helpful? Give feedback.
@ivanjaros #17362