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

how to access searchText from lib/search.vue to the <lunr-search> component #13

Open
anjali89r opened this issue Jul 8, 2021 · 1 comment

Comments

@anjali89r
Copy link

I'm looking for a way to add the searchText entered by the user to the URL as a search query like
..url/search?q=mysearchterm. But I'm unable to access the searchText from the lib/search.vue folder. How to access this value?

@sandoche
Copy link

I use this as a workaround

      const search = document.getElementById('lunr-search')
      const searchTest = search.value

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

2 participants