Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

duplicate events calling when navigate back and forth with vue router #29

Open
Quizee60 opened this issue Sep 26, 2018 · 0 comments
Open

Comments

@Quizee60
Copy link

Quizee60 commented Sep 26, 2018

Within an app with Vue router, as we navigate back and forth. a component that use vuedals, event bus always remember the previous push call back event such as new, close, dismiss and as we visit the component page that use vuedals again it will push that same event again and again.

this is due to whenever component.vue created() hook is called, it keep push event new, close, dismiss to the event bus which previously remembered.

so when we close a modal will call function onClose(data) many times.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant