Skip to content

How to Attach eventListener to a modal closing? #278

Closed
@cevhyruz

Description

@cevhyruz

I implemented a globally shared Modal wrapper component, that accepts injecting a child component inside the modal body, My problem now is I want to cleanup the child component when modal is destroyed. how can I do this?

I can do this through a close button, but how to do it when the user pressed Esc or when user clicks outside of modal?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions