-
-
Notifications
You must be signed in to change notification settings - Fork 46
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
Fixing toggle function #43
Comments
I also have the issue in React. It works nicely just after set up, but when restarting the local server it fails to update the theme. Here's my code:
|
I have the same problem that @guschiavon on react... |
Me too, I use next.js and facing the same issue :( |
Me too, with Next 14 and React 18 |
Same issue, using Next, React, and DaisyUI |
Yeah not working. I've removed the library and use this with DaisyUI V5 and React 18 and Lucide Icons. Works like a charm.
|
Hi, the themeToggle() function have some problems. It is creating a new eventlistener each time that the toggle is clicked and in vue isn't working (I'm trying with https://daisyui.com/)
This is a suggestion to fix (this code: https://github.com/saadeghi/theme-change/blob/master/src/toggle.js):
In vue, I make works with:
The text was updated successfully, but these errors were encountered: