primefaces / primevue

Next Generation Vue UI Component Library
https://primevue.org
MIT License
10.84k stars 1.24k forks source link

Select: enabling auto-filter-focus results in a console error when de-selecting Select component dropdown #6804

Closed nexgen-ui closed 3 days ago

nexgen-ui commented 1 week ago

Describe the bug

Console error occurs when opening and closing Select when setting auto-filter-focus property to true with any version above PrimeVue 4.0.7.

Get an error when selecting and unselecting the dropdown list.

chunk-EV7Y6BW5.js?v=004775d9:843 Uncaught (in promise) TypeError: Cannot read properties of null (reading '$el') at Proxy. (chunk-EV7Y6BW5.js?v=004775d9:843:42)

Reproducer

https://stackblitz.com/edit/primevue-4-ts-vite-issue-template-znb9vk?file=src%2FApp.vue

PrimeVue version

4.0.22

Vue version

4.x

Language

TypeScript

Build / Runtime

Vite

Browser(s)

No response

Steps to reproduce the behavior

  1. Open devtools in Chrome first and clear console messages.
  2. Open dropdown list and then close it.
  3. Console error appears in console.

Expected behavior

There should not be any console errors when using the Select component with auto-filter-focus enabled

sivareddyuppathi commented 1 week ago

PR: https://github.com/primefaces/primevue/pull/6787

tugcekucukoglu commented 3 days ago

Duplicate https://github.com/primefaces/primevue/issues/6793