-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Persistent List View: Fix the list stealing focus from the canvas on …
…item mount (#31058) When a block is selected, opening the persistent list view moves the focus away from the canvas to the corresponding list item. To prevent the list view from stealing focus every time the selected block changes if the list view is open, the focus change only happened on list item mount. This approach didn't take into account newly created blocks, which inherently spawn new list items, which of course mount and steal focus from the canvas. This fix makes sure that the focus change only happens when the entire list view mounts for the first time. Creating new blocks while the list view is open, will keep the focus in the canvas, as expected.
- Loading branch information
Showing
2 changed files
with
14 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters