Skip to content

[bug]: Typescript error with position: "absolute" #2007

Open
@LoyalPotato

Description

@LoyalPotato

Which react-spring target are you using?

  • @react-spring/web
  • @react-spring/three
  • @react-spring/native
  • @react-spring/konva
  • @react-spring/zdog

What version of react-spring are you using?

9.5.5

What's Wrong?

Setting position: "absolute" in the from property of the useTransition hook shows a typescript error when setting style on the animated div.

To Reproduce

Set position: "absolute" in the from property of the useTransition hook.

Expected Behaviour

No errors

Link to repo

https://codesandbox.io/s/youthful-gianmarco-y5q1v2?file=/src/App.tsx

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions