Hello, so I recently created a toggle switch that is on an overlay. This switch functions properly and works to toggle my screens modes from light/dark. however when the overlay closes, the switch toggle resets.        Â
For example:Â I am on a light theme > opens overlay > toggles to dark theme (it works) > switch changes to toggled > closes overlay > reopens overlay > switch resets to non toggled.Â
as you can see this messes with the point of the toggle, every time IÂ open the overlay after toggling to dark theme, I'm having to toggle twice to change to light theme, instead of it being fluid.
Â
Does anyone have a fix for this?Â
Â
Question
Dark/Light theme switch toggle resetting on overlay.
This topic has been closed for replies.
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.
