Skip to content

Error when using splide in a iframe in chrome #931

Description

@Gizmo2109

Checks

Version

v4.1.2

Description

When using splide in an iframe and while using chrome an uncaught Error appears: "[splide] A track/list element is missing." even though all track and list elements are present. I debugged and found that in splide.esm.js:66 (uncompiled: type.ts:75) the function isHTMLElemnt returns false when given the 'splide__list' element because it is a HTMLUListElement and only inherits HTMLElement. I have already found a fix by @beezital (GrapesJS/grapesjs#4062) but it was never pulled. I already have an open pull request (#932) so it would be nice if you pulled it.

Reproduction Link

No response

Steps to Reproduce

  1. Have an iframe
  2. Use splide in it
  3. open the website with the iframe using chrome

Expected Behaviour

It is expected to work in an iframe in chrome

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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