-
I have a component that dynamically generates a transform style according to the number of items. But it seems that this post style assignment is causing problems for dnd-kit..? Can anyone help? codesandbox: https://codesandbox.io/p/sandbox/elastic-forest-e6iecu chrome_BwHOZjirT9.mp4 |
Beta Was this translation helpful? Give feedback.
Answered by
agmmnn
Mar 17, 2023
Replies: 1 comment
-
I created a parent div element and moved the style there and it worked. edited code: before: <div
ref={setNodeRef}
style={{
transform: transform,
}}
>
{children}
</div> after: <div
style={{
transform: transform,
}}
>
<div
ref={setNodeRef}
>
{children}
</div>
</div> |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
agmmnn
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I created a parent div element and moved the style there and it worked.
edited code:
https://codesandbox.io/p/sandbox/frosty-wave-mptnz4
before:
after: