Open ytkimirti opened 1 month ago
Hey, thanks for filing and the kind words 👋. I think this happens because antd hides the tabs by default instead of removing them from the DOM. I added the destroyInactiveTabPane
prop and it seemed to mitigate the issue: sandbox. Curious to hear your thoughts.
Yeah, could there be a fix? Maybe an option in framer motion?
Not that I'm aware of but I'd be interested if you found one! Would the destroyInactiveTabPane
prop be viable for you?
Unfortunately no, if I find time, I will look further into it
The component looks really good, I wanted to use it in my project and stumbled upon this bug.
It's quite specific. It happened when using antd's
Tabs
component.destroyInactiveTabPane: true
in antduseState
to test)I don't have much experience with framer motion so I couldn't go deeper, maybe the problem is from antd or framer motion but I am not sure.
Minimal reproduction: https://codesandbox.io/p/devbox/6vsgx6