Skip to content

TypeError: search is not a function #784

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

Closed
aleksrutins opened this issue Dec 21, 2021 · 3 comments · Fixed by #785
Closed

TypeError: search is not a function #784

aleksrutins opened this issue Dec 21, 2021 · 3 comments · Fixed by #785

Comments

@aleksrutins
Copy link
Contributor

When attempting to search through the bar in the top menu, it fails with an error of 'search is not a function'. The thing is, window.search is a function, and I can use it through DevTools. One solution that works (on my machine, at least) is to change the keyup event on input#search here:

@keyup="search(event).then(function({ results: hits }) { results = true; threads = hits[0].hits; articles = hits[1].hits; })"

to explicitly reference window.search instead of just search.

@driesvints driesvints added the bug label Dec 21, 2021
@driesvints
Copy link
Member

Thanks for letting us know. We'll check in on this.

@aleksrutins
Copy link
Contributor Author

Should I create a PR?

@driesvints
Copy link
Member

Yes, thank you!

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

Successfully merging a pull request may close this issue.

2 participants