Skip to content
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

How to scroll panel into view when it is shown on click? #96

Open
gnoyixiang opened this issue Dec 7, 2018 · 2 comments
Open

How to scroll panel into view when it is shown on click? #96

gnoyixiang opened this issue Dec 7, 2018 · 2 comments

Comments

@gnoyixiang
Copy link

Hello!
I would like the panel to be scrolled into view (if it is not in view) when the user clicks it.
I cannot get the DOM element by applying ref to the Collapse or Panel component.
Kindly advise. Thanks!

@marko1943
Copy link

any luck with this? 😄

@gnoyixiang
Copy link
Author

Nope, havent tried out anything yet. But I think the way to do it is apply ref to the children node of the Panel. That should work and should be the way it is.

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

No branches or pull requests

2 participants