You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
I am trying to use DaisyUI toggle with
<Switch />
but I am a little stumped why the state is not changing.Here is my code
The value never gets checked.
If I don't use headlessUI and just write my component, it works just fine.
I have added
console.log(enabled)
and on both example the values are logged.It doesn't make sense why this is not working. If I use
aria-checked
then it does work. I also triedv-model
on checkbox, with no luck.Here is a video of what I mean not working.
Screen.Recording.2023-09-05.at.11.10.40.AM.mov
Beta Was this translation helpful? Give feedback.
All reactions