Skip to content

Event beforeClose is triggered twiceย #470

@dima-gdp

Description

@dima-gdp

Version

vue-final-modal: ^4.5.4
vue: ^3.3.7

Reproduction Link

https://stackblitz.com/edit/github-hrywkt9m?file=src%2Fcomponents%2FMyModalPreview.vue

Steps to reproduce

Close the modal window by clicking outside of the modal or by pressing the Esc key.
Observe that the beforeClose event is triggered twice.

What is Expected?

The beforeClose event should be triggered once. In the console, "onBeforeClose" should be logged only once.

What is actually happening?

The beforeClose event is triggered twice, resulting in "onBeforeClose" being logged twice in the console.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions