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

Fixed a bug that the style palettes were not being loaded due an incorrect DOM event #127

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

cheb60
Copy link

@cheb60 cheb60 commented Oct 19, 2023

Fixed a bug that the custom style palettes were not being loaded on the front-end. Swapped the page:loaded event for DOMContentLoaded because page:loaded is a custom event. Now the custom style palettes are being loaded correctly.

@cheb60 cheb60 changed the title Fixed a bug that the style palettes were not being loaded due a incor… Fixed a bug that the style palettes were not being loaded due an incorrect DOM event Oct 19, 2023
@Samuell1
Copy link
Owner

Samuell1 commented Mar 8, 2024

@daftspunk said that it should use condition depending by turbo router oc.useTurbo ? 'page:loaded' : 'DOMContentLoaded'

Can you test it and i can merge this PR 💯

It indeed should use the condition depending by turbo router. Added compatibility by daftspunk request.
@cheb60
Copy link
Author

cheb60 commented Mar 8, 2024

@Samuell1 I added the condition as requested and it seems to work in both scenarios 👍 . Would be great if you can merge this PR.

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