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

[Bug] Modern template does not read the value of "tocFilter" in local storage. #9791

Open
AnalogFeelings opened this issue Mar 15, 2024 · 0 comments
Labels
bug A bug to fix template The stock site template

Comments

@AnalogFeelings
Copy link

Describe the bug
The TOC filter bar stores its content inside "tocFilter" in the local storage, most likely to load it back in on page reload, like the older versions did.

To Reproduce
Steps to reproduce the behavior:

  1. Go to any page with a TOC
  2. Put any filter on the filter bar
  3. Click on a page/reload
  4. The filter bar is empty

Expected behavior
The filter bar should keep its value by reading the "tocFilter" variable inside local storage on element construction.

Screenshots
None

Context (please complete the following information):

  • Browser: Edge (Chromium)
  • Form factor: All
  • Docfx version: 2.75.2
  • Template: modern

Additional context
None

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug A bug to fix template The stock site template
Projects
None yet
Development

No branches or pull requests

1 participant