Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#1498: Add retainTextOnClick #1774

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

tjhaygood
Copy link

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 for click on the search input, using this.searchEl.select() in either of those didn't work consistently.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant