Skip to content

observer: true not working for custom element #7598

@Prinzhorn

Description

@Prinzhorn

Check that this is really a bug

  • I confirm

Reproduction link

https://codesandbox.io/p/sandbox/swiper-navigation-forked-hq74dw?file=%2Findex.html%3A56%2C6

Bug description

When deleting a slide the slider does not updated and leaves extra space at the far right. Compare this to the core-api version https://codesandbox.io/p/sandbox/swiper-navigation-forked-2x6fjm?file=%2Findex.html%3A64%2C48

If this is not supported in the custom element, then there should be a warning or error when using the attribute, right? Or maybe there is and I don't see it because I'm using the bundled js?

Expected Behavior

No response

Actual Behavior

No response

Swiper version

swiper@11

Platform/Target and Browser Versions

Ubuntu 23.10 with both Firefox 127.0.2 and Chromium 126.0.6478.114

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions