cmfcmf / docusaurus-search-local

Offline / Local Search for Docusaurus v2. Try it live at:
https://cmfcmf.github.io/OpenWeatherMap-PHP-API/
MIT License
451 stars 66 forks source link

Autoscroll not working #150

Open denischernow opened 2 years ago

denischernow commented 2 years ago

Please describe the bug you are seeing

Scroll does not work correctly when following a link. When selecting the found result, the scroll works in 50% of cases.

How can we best reproduce the bug?

  1. Fill in the search input
  2. Click on one of the found results.
  3. Repeat several times

Which version of Docusaurus and @cmfcmf/docusaurus-search-local are you using?

├─┬ @cmfcmf/docusaurus-search-local@0.11.0 │ └── @docusaurus/core@2.1.0 deduped ├── @docusaurus/core@2.1.0 ├─┬ @docusaurus/preset-classic@2.1.0 │ ├── @docusaurus/core@2.1.0 deduped │ ├─┬ @docusaurus/plugin-content-blog@2.1.0 │ │ └── @docusaurus/core@2.1.0 deduped │ ├─┬ @docusaurus/plugin-content-docs@2.1.0 │ │ └── @docusaurus/core@2.1.0 deduped │ ├─┬ @docusaurus/plugin-content-pages@2.1.0 │ │ └── @docusaurus/core@2.1.0 deduped │ ├─┬ @docusaurus/plugin-debug@2.1.0 │ │ └── @docusaurus/core@2.1.0 deduped │ ├─┬ @docusaurus/plugin-google-analytics@2.1.0 │ │ └── @docusaurus/core@2.1.0 deduped │ ├─┬ @docusaurus/plugin-google-gtag@2.1.0 │ │ └── @docusaurus/core@2.1.0 deduped │ ├─┬ @docusaurus/plugin-sitemap@2.1.0 │ │ └── @docusaurus/core@2.1.0 deduped │ ├─┬ @docusaurus/theme-classic@2.1.0 │ │ └── @docusaurus/core@2.1.0 deduped │ └─┬ @docusaurus/theme-search-algolia@2.1.0 │ └── @docusaurus/core@2.1.0 deduped └─┬ docusaurus-plugin-sass@0.1.15 └── @docusaurus/core@2.1.0 deduped

Which Node.js version are you using?

v16.15.1

Which theme are you using?

Yes, I am using @docusaurus/theme-classic

How does your plugin config look like?

    [
        require.resolve("@cmfcmf/docusaurus-search-local"),
        {
            lunr: {
                tokenizerSeparator: /[\s]+/
            }
        }
    ]

Additional context

No response

raphmim commented 11 months ago

Hello, we are experiencing the same bug and it's a big obstacle to using the search feature.