react-splide icon indicating copy to clipboard operation
react-splide copied to clipboard

Invalid value for prop `transition` on <div> tag.

Open HenriPodolski opened this issue 1 year ago • 0 comments

Checks

  • [X] Not a duplicate.
  • [X] Not a question, feature request, or anything other than a bug report directly related to React Splide. Use Discussions for these topics: https://github.com/Splidejs/splide/discussions

Version

0.7.12

Description

When using a custom transition, as described here: https://splidejs.com/guides/transition/#transition-component and here https://splidejs.com/integration/react-splide/#transition, I get the error

react-dom.development.js:94 Warning: Invalid value for prop `transition` on <div> tag. Either remove it from the element, or pass a string or number value to keep it in the DOM. For details, see https://reactjs.org/link/attribute-behavior 
    at div
    at Splide2 (http://localhost:6006/vendors-node_modules_babel_runtime_helpers_esm_asyncToGenerator_js-node_modules_babel_runtime-9e4a3f.iframe.bundle.js:4863:5)

Reproduction Link

https://codesandbox.io/p/devbox/restless-feather-s5yr2t?file=%2Fsrc%2FApp.tsx%3A55%2C33

Steps to Reproduce

  1. Use a custom transition
  2. Check console for error

Expected Behaviour

No error message

HenriPodolski avatar Feb 15 '24 14:02 HenriPodolski