Splidejs / splide

Splide is a lightweight, flexible and accessible slider/carousel written in TypeScript. No dependencies, no Lighthouse errors.
https://splidejs.com
MIT License
4.83k stars 418 forks source link

isHTMLElement returns false in grapesjs editor (in chrome/edge not in Firefox) #1272

Open redoC-A2k opened 7 months ago

redoC-A2k commented 7 months ago

Checks

Version

4.1.4

Description

I want to make splidejs carausel plugin for grapesjs editor . But when carousel works fine in firefox , however when it doesn't works in chrome / edge . I get error - Error: [splide] A track/list element is missing.

Reproduction Link

https://codesandbox.io/p/github/redoC-A2k/grapesjs-carousel-component/main

Steps to Reproduce

(Make sure you use the chrome/edge browser)

  1. Open codesandbox
  2. Open the preview url in new tab
  3. Click on the blocks button image
  4. Drag and drop carausel from caraousel section to canvas . image
  5. open the developer console , you should get error.

Expected Behaviour

Carousel should work as expected in chrome/edge.