Closed joshkel closed 1 year ago
If compute-scroll-into-view tries to evaluate a scrollable container with zero height, it generates values of NaN.
See https://codesandbox.io/s/nifty-kate-gxf4k8?file=/src/index.js for an example.
A zero-height element can happen, for example, when using a grow transition. The growing element is initially rendered at 0 height, but I'd like to go ahead and scroll to it so that it will be visible as it grows.
:tada: This issue has been resolved in version 3.1.0 :tada:
The release is available on:
Your semantic-release bot :package::rocket:
If compute-scroll-into-view tries to evaluate a scrollable container with zero height, it generates values of NaN.
See https://codesandbox.io/s/nifty-kate-gxf4k8?file=/src/index.js for an example.
A zero-height element can happen, for example, when using a grow transition. The growing element is initially rendered at 0 height, but I'd like to go ahead and scroll to it so that it will be visible as it grows.