framer / motion

Open source, production-ready animation and gesture library for React

Home Page:https://framer.com/motion

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[BUG] Components wrapped in `motion` don't pass props starting with "drag"

NgoKnows opened this issue Β· comments

1. Read the FAQs πŸ‘‡

2. Describe the bug
When wrapping a component in motion, it causes props starting with drag to not be passed to the underlying wrapped component.

3. IMPORTANT: Provide a CodeSandbox reproduction of the bug
Codesandbox repro

4. Steps to reproduce

Steps to reproduce the behavior:

  1. Go to repro
  2. See that prop starting with drag isn't being passed to wrapped component

5. Expected behavior
For props that start with drag to get passed to wrapped components