infotexture / dita-bootstrap.lunr

DITA Open Toolkit plug-in that extends HTML output from the DITA Bootstrap plug-in with a Lunr.js search box
https://infotexture.github.io/dita-bootstrap/search-box.html
Apache License 2.0
0 stars 4 forks source link

Closing search results not working #32

Closed lakokkonen closed 11 months ago

lakokkonen commented 11 months ago

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 commented 11 months ago

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