Select.vue - TypeError: Cannot read properties of null (reading '$el') onOverlayLeave #6545
Labels
Status: Needs Triage
Issue will be reviewed by Core Team and a relevant label will be added as soon as possible
Describe the bug
When filter is on and autoFilterFocus as well then on closing the select it wants to focus the filterInput.
But the filterInput is null.
I don't see why filterInput needs to be focused at all when closing the select.
It's caused by this line:
primevue/packages/primevue/src/select/Select.vue
Line 710 in 9d9ae35
Reproducer
https://stackblitz.com/edit/primevue-4-vite-issue-template-ajtkvm?file=src%2Fmain.js
PrimeVue version
4.1.0
Vue version
4.x
Language
TypeScript
Build / Runtime
Vite
Browser(s)
Chrome 129.0.6668.70
Steps to reproduce the behavior
Open the select and close it by clicking next to it.
Expected behavior
Not to focus the filterInput when closing the select.
The text was updated successfully, but these errors were encountered: