chenglou / chenglou/react-motion

Chrome scroll bar invalid after I use { Motion, spring } for sidebar slider switching

Open
#562 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
21.9k
Forks
1.1k
PR merge metrics
No merged PRs in 30d

Description

There is a sidebar in my program that uses the overflow-y:auto attribute

Then I tried to use ref to `focus()` and `forceupdate()` on the Slider component, but it didn't work. Even if` focus()` and `forceupdate()` are used long after the animation ends with `setTimeout()`, it is useless.

Later, I accidentally triggered a dispatch and the scroll bar returned to normal. I guess this is related to the view update of react

link: https://codesandbox.io/embed/1or9k8x857

version: react: 16.6.0 react-motion: 0.5.2

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.