Skip to content

fix(element): attach container shadow DOM on init #7992

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

krzksz
Copy link

@krzksz krzksz commented May 20, 2025

This PR addresses the issue I described in #7983.

It moves the shadow DOM attachment for the SwiperContainer element from the constructor to the initialize function. This makes sure that the elements stay visible all the time as the render function is triggered synchronously right after.

The change is not needed for the SwiperSlide as it moves its contents immediately anyway.

@krzksz
Copy link
Author

krzksz commented May 20, 2025

@nolimits4web Thank you for looking into the issue. I can see you closed it as "expected behaviour". The fix seems quite simple, but feel free to close this PR if you don't like it.

Thanks again!

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.

1 participant