primefaces / primevue

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

Select/MultiSelect: onOverlayLeave should not try and focus on Filter #6564

Open 1Map opened 1 week ago

1Map commented 1 week ago

Describe the bug

The following line in your code throws an error as filterInput is null:

focus(this.$refs.filterInput.$el);

https://github.com/primefaces/primevue/blob/22d6f8a03724f30b6695a0800412f77a3a8ed738/packages/primevue/src/select/Select.vue#L710

I do not think it should try and focus on the filter during onOverlayLeave as the filterInput is not always there (null)

Reproducer

N/A

PrimeVue version

Latest

Vue version

4.x

Language

ALL

Build / Runtime

Vite

Browser(s)

No response

Steps to reproduce the behavior

No response

Expected behavior

No response

CCodam commented 1 week ago

Duplicate of #6539 and #6545