Skip to content
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

Sidebar, darkmode and modals are not automatically toggled as expected. #125

Closed
ZikaCodez opened this issue Apr 24, 2022 · 5 comments
Closed

Comments

@ZikaCodez
Copy link

This video showcases my issue. Dark mode is not automatically enabled, thus I need to call halfmoon.toggleDarkMode() upon loading the page. And, the sidebar is auto opened as well. Finally, the "followers" modal is opened instantly without toggling it myself. And I cannot find a way to close it upon loading the page. I need help figuring out how to make everything work normally so my project won't look buggy to users.

@makerio90
Copy link

do you have data-set-preferred-mode-onload="true" in your <body> tag?

@ZikaCodez
Copy link
Author

Just added it. However, now it just switched from dark mode to light mode and vice versa each time I reload the page. Meaning that's another issue, thus I'll just remove that.

@ZikaCodez
Copy link
Author

I don't think this is normal.

@ZikaCodez
Copy link
Author

Turns out it was all just an issue with my reading skills. Didn't notice some important notes on both the documentation and my code. Finally, fixed everything.

@Supernova3339
Copy link

Supernova3339 commented Oct 11, 2022 via email

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

No branches or pull requests

3 participants