Skip to content

Dynamically appended transform style cause problem? #1064

Answered by agmmnn
agmmnn asked this question in Q&A
Discussion options

You must be logged in to vote

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:

    <div
      ref={setNodeRef}
      style={{
        transform: transform,
      }}
    >
      {children}
    </div>

after:

    <div
      style={{
        transform: transform,
      }}
    >
      <div
        ref={setNodeRef}
      >
        {children}
      </div>
    </div>

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by agmmnn
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant