Skip to content

destroy doesn't work on page load #693

@HendrikWismans

Description

@HendrikWismans

Checks

Version

v3

Description

I'm update splide to v3 (from v2). The destroy function doesn't work correct.

I want:

  • Mobile: splide with 1 tile
  • Large mobile: splide with 2 tiles
  • Desktop: no splide

It works NOT on initial page load on desktop. Splide is not destroyed. If you make your screen bigger and smaller destroy works.

Reproduction Link

https://codepen.io/hendrik___/pen/LYOvWPo

Steps to Reproduce

Open https://codepen.io/hendrik___/pen/LYOvWPo on large screen.

Expected Behaviour

On larger screen splide must be inactive.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions