Skip to content

Conversation

@rzhao271
Copy link
Collaborator

Fixes #125166

This PR adds a few blur handlers to the list, exclude, and object dropdown widgets, so that when the user goes back to the searchbox and types, focus doesn't accidentally go back to the widget.

The downside is that the widgets now leave edit mode more eagerly, which might result in more clicks as users go back and forth to edit settings.

@rzhao271 rzhao271 added this to the July 2021 milestone Jul 23, 2021
@rzhao271 rzhao271 requested a review from roblourens July 23, 2021 21:14
@rzhao271 rzhao271 self-assigned this Jul 23, 2021
Copy link
Member

@roblourens roblourens left a comment

Choose a reason for hiding this comment

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

So this happens if you edit in the setting, then do something so the setting gets re-rendered, and it steals focus?

The downside is that the widgets now leave edit mode more eagerly, which might result in more clicks as users go back and forth to edit settings.

I think an alternative would be do to this cancelEdit when disposeElement is called? Up to you

@rzhao271
Copy link
Collaborator Author

That sounds cleaner; I'll try with disposeElement

@rzhao271 rzhao271 modified the milestones: July 2021, August 2021 Jul 26, 2021
@rzhao271
Copy link
Collaborator Author

I'll move this PR out to the next milestone. It's cleaner when using disposeElement, and I'm able to place more than one setting in edit mode, but the focus indicator is a bit off.

focus-off

@rzhao271
Copy link
Collaborator Author

Closing in favour of #129458

@rzhao271 rzhao271 closed this Jul 26, 2021
@rzhao271 rzhao271 deleted the rzhao271/widget-blur branch July 26, 2021 21:01
@github-actions github-actions bot locked and limited conversation to collaborators Sep 9, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Table in settings editor automatically captures focus

3 participants