easyops-cn / docusaurus-search-local

Offline/local search for Docusaurus v2/v3
https://easyops-cn.github.io/docusaurus-search-local/
MIT License
710 stars 90 forks source link

Autocomplete doesn't work after navigating to another page #159

Open eugenefm opened 2 years ago

eugenefm commented 2 years ago

The autocomplete works once from the homepage, but after navigating you can no longer click on any links in the dropdown and every time you type a letter it fires this error in the console:

(intermediate value)(intermediate value).isImmediatePropagationStopped is not a function at HTMLInputElement.i.split.forEach.a.proxy

From inspecting the error, I believe it has something to do with Zepto, but unsure exactly.

Versions

"@docusaurus/core": "2.0.0-beta.18",
"@easyops-cn/docusaurus-search-local": "^0.23.0"
weareoutman commented 2 years ago

I can't reproduce your problem, see https://easyops-cn.github.io/docusaurus-search-example/ which uses similar versions as yours:

"@docusaurus/core": "2.0.0-beta.19",
"@easyops-cn/docusaurus-search-local": "0.23.2"

Can your provide a reproducible link?

yamankatby commented 1 year ago

I got this too, any updates?

Screenshot 2023-02-15 at 17 13 02

Uncaught TypeError: e.isImmediatePropagationStopped is not a function at i.split.forEach.a.proxy