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

Codepen example does not seem to work #42

Open
torchello opened this issue Aug 7, 2023 · 6 comments
Open

Codepen example does not seem to work #42

torchello opened this issue Aug 7, 2023 · 6 comments

Comments

@torchello
Copy link

I can't make it working with SolidJS (SolidStart) with the recommended setup:

export default function Root() {
  onMount(async () => {
    themeChange();
  });
 
  /...

and

<button class="btn btn-primary" data-set-theme="dark">Dark Theme</button>
<button class="btn btn-secondary" data-set-theme="light">Light Theme</button>

When I click the button nothing happens and no errors in console. I checked the codepen example and it does not work too. Any ideas?

@saadeghi
Copy link
Owner

I'm not sure about Solid but the Codepen example works as expected and there's no problem with that 🤔

@gabrieldesousah
Copy link

There is a problem in toggle example

@saadeghi
Copy link
Owner

There is a problem in toggle example

There is a problem is not helpful. What problem?

2.mp4

@gabrieldesousah
Copy link

Screen.Recording.2023-08-17.at.10.21.44.mov

In my tests toglle don't work, but the other functions yes

@saadeghi
Copy link
Owner

In my tests toglle don't work, but the other functions yes

  • Does this happen on other browsers as well?
  • Does this happen on incognito mode?
  • Are you using any software or plugin (like adblocker) that may manipulate web pages?

@0xPiyush
Copy link

0xPiyush commented Nov 15, 2023

  • Does this happen on other browsers as well?
    -- For me it happens on all Chromium based browsers.
  • Does this happen on incognito mode?
    -- Yes it does.
  • Are you using any software or plugin (like adblocker) that may manipulate web pages?
    -- Test with and without the adblocker/darkreader, in both cases it did not work.

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

4 participants