-
Notifications
You must be signed in to change notification settings - Fork 4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Position Panel: Open by default if a position type is set (#49151)
* Position Panel: Open by default is a position type is set * Remove prop drilling clientId, grab all selected client ids and use first id for attributes check * Iterate over block selection and open by default if at least one block has a position type set. Co-authored-by: Aaron Robertshaw <60436221+aaronrobertshaw@users.noreply.github.com> * Add useState and an effect so that we only perform the calculation once * Try to reduce flicker * Update to useLayoutEffect --------- Co-authored-by: Aaron Robertshaw <60436221+aaronrobertshaw@users.noreply.github.com>
- Loading branch information
1 parent
ebdb90c
commit 83088ab
Showing
1 changed file
with
40 additions
and
9 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