Skip to content

interrupt close event on Modal #1549

@claireramming

Description

@claireramming

Is it possible to interrupt the close event of Modal? the dispatched 'close' event seems to happen after the Modal is already toggled to be closed so preventDefault doesn't stop it from closing. I'd like to be able to show a warning to the user before the modal closes if they have info filled out in the modal and they attempt to close the modal without saving the info.

Metadata

Metadata

Assignees

Labels

documentationImprovements or additions to documentationenhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions