DataViews: action modals without a button do not close when pressing the Esc
key
#69265
Labels
[Feature] DataViews
Work surrounding upgrading and evolving views in the site editor and beyond
[Type] Bug
An existing feature does not function as intended
Description
DataViews supports adding actions that have modals. When a modal is open, it can be closed by pressing the
Esc
key, but only if the modal has a button that calls thecloseModal
on click.Step-by-step reproduction instructions
Modify the DataViews story for render modals:
hideModalHeader
tomodalHeader: 'Delete action'
.Run the storybook:
npm install && npm run storybook:dev
Esc
key in the keyboard. The expected result was that it closed the modal, but it didn't.X
button in the modal header does close the modal.The text was updated successfully, but these errors were encountered: