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

ToolsPanel: Selections in menu should persist #53425

Closed
simonwammerfors opened this issue Aug 8, 2023 · 3 comments
Closed

ToolsPanel: Selections in menu should persist #53425

simonwammerfors opened this issue Aug 8, 2023 · 3 comments
Labels
[Package] Editor /packages/editor [Type] Enhancement A suggestion for improvement.

Comments

@simonwammerfors
Copy link

What problem does this address?

If I select a block and activate one of the options in the ToolsPanel, the selected options don't persist if I then deselect the block or select another block. Once I re-select the first block the options needs to be activated again. This is also the case if a block is unintentionally deselected when trying to close the ToolsPanel menu, see issue #41546.

persist.mov

What is your proposed solution?

Selections in the ToolsPanel menu should persist. If an option is activated for a block, I expect that option to be active until I de-activate it.

@jordesign jordesign added [Type] Enhancement A suggestion for improvement. [Package] Editor /packages/editor labels Aug 8, 2023
@aaronrobertshaw
Copy link
Contributor

Thanks for taking the time to submit this @simonwammerfors 👍

The issue described has come up previously in #41544. It is made a little worse by the way in which the panel's menu expands over the panel content generally as detailed in #41545.

The decision made on the original issue was that the impact of this, unfortunately, didn't warrant the greater complexity of tracking the unmounted component state.

With the current behaviour, if a user customises an item once selected, that control continues to display the next time the block is selected. An argument could also be made that if a user toggles an item on and decides against customizing it, they don't want it to show the next time the block is selected.

Perhaps we can keep this issue open for a week or two to see if there is a "wider concern" about the behaviour. If not, we might need to close it.

@simonwammerfors
Copy link
Author

Thank you for taking time to explain and point to those issues I didn't managed to find.

Maybe then it would be better to focus on the issue in #41546. The combination of non-persistent menu options and the fact that it's quite easy to accidentally deselect the block while trying to close the menu is probably what causes most of the annoyance here.

@aaronrobertshaw
Copy link
Contributor

Maybe then it would be better to focus on the issue in #41546.

Sounds like a plan 👍

I'll close this issue now then as a duplicate of #41544

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Package] Editor /packages/editor [Type] Enhancement A suggestion for improvement.
Projects
None yet
Development

No branches or pull requests

3 participants