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

fix: dark mode input on mounted unchange #300

Merged
merged 1 commit into from
Nov 11, 2022
Merged

fix: dark mode input on mounted unchange #300

merged 1 commit into from
Nov 11, 2022

Conversation

WailanTirajoh
Copy link
Contributor

@WailanTirajoh WailanTirajoh commented Nov 10, 2022

  1. change dark toggler to refs so it can be call on universal mode
  2. remove client only tag on sidebar layout to load the element on first load

Description

To resolve issue on #299 before this PR, the dark component only load on client side. It makes the components doesnt load on the first second and appear latter on. Also fix bugs onmounted, the dark mode doesnt update the checkbox to true even if its on dark mode.

Todos

  • 1. change dark toggler from document.getElementById to vue refs
  • 2. remove client-only tag from sidebar dark component

1. change dark toggler to refs so it can be call on universal mode
2. remove client only tag on sidebar layout to load the element on first load
@vercel
Copy link

vercel bot commented Nov 10, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
mazer-nuxt ✅ Ready (Inspect) Visit Preview Nov 10, 2022 at 4:58PM (UTC)

Copy link
Owner

@fzn0x fzn0x left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@fzn0x fzn0x merged commit 80741b5 into fzn0x:main Nov 11, 2022
@WailanTirajoh WailanTirajoh deleted the fix/dark-mode-input branch November 11, 2022 13:41
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

Successfully merging this pull request may close these issues.

2 participants