-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Select: throws an error with auto-filter-focus #6539
Comments
The pull request from @KumJungMin is for opening the select. This is about closing it. |
The following line in your code throws an error as filterInput is null:
primevue/packages/primevue/src/select/Select.vue I do not think it should try and focus on the filter during |
a comment there is to be resolved on line 693 this.autoFilterFocus && focus(this.$refs.filterInput.$el); |
The following should be completely removed from
It is only needed in |
@wijzijnweb Thanks, well still not fixed in the latest version |
Can confirm, it's still an issue onLeave. |
Describe the bug
From v 4.10, the Select component throws an error when you click out of the dropdown, when auto-filter-focus is enabled.
<PrimeVueSelect
v-model="customer"
checkmark
show-clear
filter
auto-filter-focus // this throws an error
scroll-height="20rem"
option-label="company_code"
:options="customerOptions"
:loading="customerOptionsLoading"
:disabled="customerOptionsLoading"
class="w-full"
:invalid="Boolean(errors.customer)"
v-bind="customerAttrs"
Reproducer
PrimeVue version
4.10
Vue version
4.x
Language
TypeScript
Build / Runtime
Vite
Browser(s)
No response
Steps to reproduce the behavior
No response
Expected behavior
No response
The text was updated successfully, but these errors were encountered: