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

[Swiper Element] The CSS parts were removed when dynamically updating the scrollbar/pagination enable/disable feature #6899

Closed
5 of 6 tasks
sunilrathore24 opened this issue Aug 2, 2023 · 0 comments · May be fixed by abhishekbedi/framework7#1, Aarod23/nys-site#1, wierza/Team-project#148 or TaylorBundy/swiper#4

Comments

@sunilrathore24
Copy link

sunilrathore24 commented Aug 2, 2023

Check that this is really a bug

  • I confirm

Reproduction link

https://stackblitz.com/edit/swiper-angular-example-1hzu5z?file=src%2Fapp%2Fapp.component.html,src%2Fapp%2Fapp.component.ts

Bug description

"The CSS parts were removed when dynamically updating the scrollbar/pagination enable/disable feature."

For the first time when the swiper is initialized (when scrollbar/pagination is set to true using parameters as props )
part="scrollbar"/part="pagination" attributes are available for scrollbar and pagination

but if we update the scrollbar/pagination (remove and add again in the future), part attributes get removed and the css overrides are not working for the scrollbar/pagination.

Expected Behavior

the part attribute should always be present in the scrollbar/pagination elements when removed and readded dynamically

Actual Behavior

the part attribute is removed when the scrollbar/pagination is updated (removed and readded)

Swiper version

9.4.1

Platform/Target and Browser Versions

Chrome is up to date Version 115.0.5790.110 (Official Build) (64-bit)

Validations

  • Follow our Code of Conduct
  • Read the docs.
  • Check that there isn't already an issue that request the same feature to avoid creating a duplicate.
  • Make sure this is a Swiper issue and not a framework-specific issue

Would you like to open a PR for this bug?

  • I'm willing to open a PR
@sunilrathore24 sunilrathore24 changed the title CSS parts got removed when dynamically updating (enable/disable) the scrollbar/pagination "The CSS parts were removed when dynamically updating the scrollbar/pagination enable/disable feature." Aug 2, 2023
@sunilrathore24 sunilrathore24 changed the title "The CSS parts were removed when dynamically updating the scrollbar/pagination enable/disable feature." " [Swiper Element] The CSS parts were removed when dynamically updating the scrollbar/pagination enable/disable feature." Aug 2, 2023
@sunilrathore24 sunilrathore24 changed the title " [Swiper Element] The CSS parts were removed when dynamically updating the scrollbar/pagination enable/disable feature." [Swiper Element] The CSS parts were removed when dynamically updating the scrollbar/pagination enable/disable feature Aug 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment