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

Fix list dom focus after changing focused element #100126

Merged
merged 1 commit into from
Jun 15, 2020
Merged

Conversation

roblourens
Copy link
Member

For #99782

We override the domFocus method for notebooks to keep focus from being stolen from the editor widget inside a list row. If we move this method to fix dom focus after the focused element has been changed, then we can check that focus isn't under the correct row and allow it to be changed. I think this is safe and makes sense, and actually matches what the comment in ensureDOMFocus says but I wanted to run it past you. If you think I shouldn't make this change there are probably other ways I can work around it just for notebooks.

@roblourens roblourens self-assigned this Jun 14, 2020
Copy link
Member

@joaomoreno joaomoreno left a comment

Choose a reason for hiding this comment

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

Yup, does make sense!

@joaomoreno joaomoreno added this to the June 2020 milestone Jun 15, 2020
@joaomoreno joaomoreno added list-widget List widget issues tree-widget Tree widget issues labels Jun 15, 2020
@roblourens
Copy link
Member Author

Thanks!

@roblourens roblourens merged commit f67a587 into master Jun 15, 2020
@roblourens roblourens deleted the roblou/listFocus branch June 15, 2020 13:27
@github-actions github-actions bot locked and limited conversation to collaborators Jul 30, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
list-widget List widget issues tree-widget Tree widget issues
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants