Skip to content

DataViews: Close action menu on Action(Modal) click #66808

@doekenorg

Description

@doekenorg

(CC @WordPress/gutenberg-components as mentioned in #56760 (comment))

What problem does this address?

When using an ActionModal from 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 to true, 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.

Image

Metadata

Metadata

Assignees

Labels

[Feature] DataViewsWork surrounding upgrading and evolving views in the site editor and beyond[Package] Components/packages/components[Status] In ProgressTracking issues with work in progress[Type] EnhancementA suggestion for improvement.

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions