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

Highlight the items in the dropdown #104

Open
cjm0215 opened this issue Oct 12, 2020 · 1 comment
Open

Highlight the items in the dropdown #104

cjm0215 opened this issue Oct 12, 2020 · 1 comment

Comments

@cjm0215
Copy link

cjm0215 commented Oct 12, 2020

Is there a way to highlight the search results in the dropdown for just the search text? I am able to add html to the items in the dropdown but it shows the html code so I think something like innerText is used instead of innerHtml.

Example:
User searches on 'ss' and it should highlight the text in 'Odessa, TX' for 'ss'. What I am seeing in the dropdown is 'Odessa, TX'?

Any ideas?

@cjm0215
Copy link
Author

cjm0215 commented Oct 12, 2020

Nvm I see that I need to add v-html to the div and use that instead.

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

No branches or pull requests

1 participant