Skip to content
This repository has been archived by the owner on May 6, 2024. It is now read-only.

Theme always dark after page refresh #216

Open
mrlife opened this issue Mar 7, 2023 · 1 comment
Open

Theme always dark after page refresh #216

mrlife opened this issue Mar 7, 2023 · 1 comment

Comments

@mrlife
Copy link

mrlife commented Mar 7, 2023

After turning off Dark Theme in the Settings page and refreshing the page via the browser, data-theme="Dark" is always added back to <body>.

I'm looking for a way to manage themes within a Blazor app, and was looking here for an example that doesn't flash the light theme when refreshing the page, for which this app is successful. However, I'm not sure if the reason it is successful is because of the issue in the first paragraph.

@trba1810
Copy link
Contributor

So i've fixed this issue,it was just some local storage preference stuff.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants