From bd38ea66ff57dc0b1838b11c52e5cbf42bf60f22 Mon Sep 17 00:00:00 2001 From: Reddy Uppathi Date: Sat, 23 Nov 2024 00:46:38 +0530 Subject: [PATCH] Select: filter and auto-filter-focus error fix --- packages/primevue/src/select/Select.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/primevue/src/select/Select.vue b/packages/primevue/src/select/Select.vue index 8bc9c760b..ae8296059 100755 --- a/packages/primevue/src/select/Select.vue +++ b/packages/primevue/src/select/Select.vue @@ -688,7 +688,7 @@ export default { this.scrollInView(); setTimeout(() => { - this.autoFilterFocus && this.filter && focus(this.$refs.filterInput.$el); + this.autoFilterFocus && this.filter && focus(this.$refs.filterInput?.$el); }, 1); }, onOverlayAfterEnter() { @@ -705,7 +705,7 @@ export default { if (this.autoFilterFocus && this.filter && !this.editable) { this.$nextTick(() => { - focus(this.$refs.filterInput.$el); + focus(this.$refs.filterInput?.$el); }); }