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

[core] don't scroll when closing a dialog #6674

Merged
merged 1 commit into from
Dec 2, 2019

Conversation

svenefftinge
Copy link
Contributor

When a dialog gets closed, the previously
active element gets focus again. We don't
want the default scroll to top behavior.

How to test

Expand the navigator to a state where you scrolled down a bit.
Now right click and choose new file so the dialog appears.
Close the dialog the navigator should have focus again without scrolling to the top.

Review checklist

Reminder for reviewers

When a dialog gets closed, the previously
active element gets focus again. We don't
want the default scroll to top behavior.

Signed-off-by: Sven Efftinge <sven.efftinge@typefox.io>
Copy link
Member

@vince-fugnitto vince-fugnitto left a comment

Choose a reason for hiding this comment

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

It works well for me, it not longer scrolls when opening/closing the dialog.

@vince-fugnitto vince-fugnitto added the dialogs issues related to dialogs label Dec 2, 2019
Copy link
Member

@akosyakov akosyakov left a comment

Choose a reason for hiding this comment

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

LGTM

@svenefftinge svenefftinge merged commit 5d24847 into master Dec 2, 2019
@svenefftinge svenefftinge deleted the se/dont_scroll_after_dialog_close branch December 2, 2019 20:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dialogs issues related to dialogs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants