Tabs (toggleSections
) does not work if localStorage is unavailable
#3323
Labels
bug
format: html
An issue/PR related to Dokka's default HTML output format
html: frontend
An issue/PR that only or primarily requires frontend work (html/css)
tech-debt
A technical issue that is not observable by the users, but improves maintainers quality of life
Describe the bug
iframe
.Example stack trace from browser console:
Expected behaviour
Other tab is shown even if localStorage is unavailable.
Screenshots
N/A
To Reproduce
Dokka configuration
Configuration of dokka used to reproduce the bug
Installation
Additional context
I understand that the use of localStorage was added in #921 to persist the tab state across page navigations. However, it'd seem appropriate to silently fail and still allow tabs to be shown even if localStorage cannot be used, at the expense of a lack of persistence.
Are you willing to provide a PR?
I could try taking a stab at it.
The text was updated successfully, but these errors were encountered: