Please advise as to whether using a 0-second setTimeout is bad practice/unacceptable - in my testing it seemed to be the most reliable way to ensure that the "select" event fired last, which made the text being highlighted after clicking on the dropdown the most consistent. I also tried this.$nextTick() and using an event listener for click on the search input, using this.searchEl.select() in either of those didn't work consistently.
Adds "retainTextOnClick" option addressing issue #1498.
Please advise as to whether using a 0-second setTimeout is bad practice/unacceptable - in my testing it seemed to be the most reliable way to ensure that the "select" event fired last, which made the text being highlighted after clicking on the dropdown the most consistent. I also tried
this.$nextTick()
and using an event listener forclick
on the search input, usingthis.searchEl.select()
in either of those didn't work consistently.