Skip to content

Invalid value for prop transition on <div> tag. #79

@HenriPodolski

Description

@HenriPodolski

Checks

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

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