-
Notifications
You must be signed in to change notification settings - Fork 4.8k
DataViews: Close action menu on Action(Modal) click #66808
Copy link
Copy link
Closed
Labels
[Feature] DataViewsWork surrounding upgrading and evolving views in the site editor and beyondWork surrounding upgrading and evolving views in the site editor and beyond[Package] Components/packages/components/packages/components[Status] In ProgressTracking issues with work in progressTracking issues with work in progress[Type] EnhancementA suggestion for improvement.A suggestion for improvement.
Metadata
Metadata
Assignees
Labels
[Feature] DataViewsWork surrounding upgrading and evolving views in the site editor and beyondWork surrounding upgrading and evolving views in the site editor and beyond[Package] Components/packages/components/packages/components[Status] In ProgressTracking issues with work in progressTracking issues with work in progress[Type] EnhancementA suggestion for improvement.A suggestion for improvement.
Type
Fields
Give feedbackNo fields configured for issues without a type.
(CC @WordPress/gutenberg-components as mentioned in #56760 (comment))
What problem does this address?
When using an
ActionModalfrom the dropdown menu with secondary actions, this action menu does not close again due to the changes made in #56760. I'd like to propose a setting where this behaviour can be disabled.What is your proposed solution?
I would like the action-object to have a
closeMenuOnClick(or something along those lines) attribute. If set totrue, the menu closes after the action is clicked.We open a modal from which shows more information about the entry you've clicked. After that, there is no need for the menu to still be open; and it takes an extra click to get rid of it.