Skip to content

Warning for missing emit _virtualUpdated declaration when virtual option is selected #8002

@kazvaggos

Description

@kazvaggos

Check that this is really a bug

  • I confirm

Reproduction link

https://codesandbox.io/p/devbox/swiper-vue-virtual-slides-forked-t29p2x

Bug description

It raises a warning because _virtualUpdated emit is not listed in emits of the swiper component

[Vue warn]: Component emitted event "_virtualUpdated" but it is neither declared in the emits option nor as an "on_virtualUpdated" prop.

It is not reproducible in codesandbox, but I can see it in my console.

Image

Also found the file that the emit happens

Image

Expected Behavior

It shouldn't raise the warning

Actual Behavior

It raises a warning

Swiper version

11.2.8

Platform/Target and Browser Versions

macOS Chrome 136.0.7103.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

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions