primevue
primevue copied to clipboard
fix(Select): resolve $el undefined error
Defect Fixes
- fix #6539
- There is an issue where
this.$refs.filterInput.$el
is not defined when opening the select. - Upon investigation, I found that
filterInput
is only rendered whenthis.filter
istrue
, so I added the this.filter condition.
this.autoFilterFocus && this.filter && focus(this.$refs.filterInput.$el); // add this.filter