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

Closing search results not working #32

Closed
lakokkonen opened this issue Nov 27, 2023 · 1 comment
Closed

Closing search results not working #32

lakokkonen opened this issue Nov 27, 2023 · 1 comment

Comments

@lakokkonen
Copy link

Currently the button to close the search results is not working. Clicking the button produces this error to the console:

Uncaught ReferenceError: closeSearch is not defined at HTMLButtonElement.onclick

I think the issue is that the closeSearch function is located inside the "main" function in the lunr-client.js file. Moving closeSearch to the end of the file makes it work.

@jason-fox
Copy link
Collaborator

jason-fox commented Nov 27, 2023

Already fixed in 17353d6 #31 - please pull latest.

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