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

Theme toggle requires 2-3 clicks before changing theme #13

Open
johndurso opened this issue Jan 7, 2021 · 5 comments
Open

Theme toggle requires 2-3 clicks before changing theme #13

johndurso opened this issue Jan 7, 2021 · 5 comments

Comments

@johndurso
Copy link

When my site (work in progress) first loads or you hard refresh, the toggle takes 2-3 clicks before changing the theme.

This was occurring out of the box.

https://friendly-jones-0d961e.netlify.app/

@luishendrix92
Copy link

luishendrix92 commented Feb 12, 2021

Happens to me as well; the change from light to dark works as intended; toggling the theme from there on after also works as intended.

The problem is when I refresh after setting it to dark, it does load the dark theme and the checkbox does change state, but it takes 3 toggles for it to change to light.

@jesielviana
Copy link

I have the same problem, it starts with the dark theme, and to change it to light I have to click 3 times

@tiagofragoso
Copy link

I also came across this issue and found that the solution is hidden in the latest commit (83409b5). Since this is not part of the latest release, the changes have not made it yet to this plugin's pages in npm or Gatsby docs.

@schabibi1
Copy link

The latest commit solved the issue👍 I had the same issue though it worked perfectly.

@zuhairnaqi
Copy link

zuhairnaqi commented Oct 24, 2022

I also came across this issue and found that the solution is hidden in the latest commit (83409b5). Since this is not part of the latest release, the changes have not made it yet to this plugin's pages in npm or Gatsby docs.

This really helps, Thanks @tiagofragoso

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

6 participants