Skip to content

fix: scroll to search focused tree item #756

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

AKhodykin
Copy link
Contributor

Scrolling to the focused tree item was not working properly, due to a bug in getDerivedStateFromProps method. The ignoreOneTreeUpdate flag is expected to be in newState.instanceProps, while static search method puts it in newState. So the flag is ignored before the next render.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.1%) to 76.636% when pulling a9edd1a on AKhodykin:bugfix/ignoreOneTreeUpdate into 1c1ed8c on frontend-collective:master.

Copy link
Member

@wuweiweiwu wuweiweiwu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

@wuweiweiwu wuweiweiwu merged commit e528a4c into frontend-collective:master Jul 30, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants