You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The second example (Autoselect after filtering) is not working.
This is because ref.optionIndex in the code (see below) returns undefined
// "ref" is the Vue reference to the QSelect
ref => {
if (val !== '' && ref.options.length > 0 && ref.optionIndex === -1) {
ref.moveOptionSelection(1, true) // focus the first selectable option and do not update the input-value
ref.toggleOption(ref.options[ ref.optionIndex ], true) // toggle the focused option
}
}
Description
The second example (Autoselect after filtering) is not working.
This is because
ref.optionIndex
in the code (see below) returnsundefined
Documentation Section URL
https://quasar.dev/vue-components/select#example--selecting-option-after-filtering
Flavour
Quasar CLI (@quasar/cli | @quasar/app)
Areas
Components (quasar)
The text was updated successfully, but these errors were encountered: