-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
BlockSettingsMenu: Ensure only one block settings menu is open at a t…
…ime (#54083) * BlockSettingsMenu and DropdownMenu: Ensure only one BlockSettingsMenu is open at a time * Update Readme files * Update reducer to fall back to undefined Co-authored-by: Ramon <ramonjd@users.noreply.github.com> * Rename isOpen to open * Try switching to a controlled component * Ensure menu is closed when blocks are inserted before/after via the menu, help stabilise test * Simplify useSelect Co-authored by: Ramon <ramonjd@users.noreply.github.com> * Add an explanatory comment describing the current solution as a temporary solution * Update action, reducer, and selectors for consistency, add tests --------- Co-authored-by: Ramon <ramonjd@users.noreply.github.com> Co-authored-by: Marin Atanasov <8436925+tyxla@users.noreply.github.com>
- Loading branch information
1 parent
fec5ffc
commit 21b6a37
Showing
7 changed files
with
129 additions
and
0 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
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
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
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