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

Can I not propagate the click action? #373

Open
lampsbr opened this issue Apr 20, 2023 · 2 comments
Open

Can I not propagate the click action? #373

lampsbr opened this issue Apr 20, 2023 · 2 comments
Labels
Type: Bug Something isn't working

Comments

@lampsbr
Copy link

lampsbr commented Apr 20, 2023

Versions

  • 1.0

Describe the bug

I'm using vue-toastification 1.x in a vuejs2.x + vuetify 2.x project. I'm also using vuetify's component, and when a toast renders over my dialog, it get's closed the wrong way. I mean I need to run some code and check some variables everytime I close my dialog, and I don't want to close it when a toast is closed. But every click to a toast, no motter if it's over my close button or not, seems to close my v-dialog component also. Can I avoid this behavior somehow?

Expected behavior

Have an option to not propagate the close action

@lampsbr lampsbr added the Type: Bug Something isn't working label Apr 20, 2023
@lampsbr
Copy link
Author

lampsbr commented Apr 20, 2023

Well, I just added the persistentproperty from the other package, now my dialog doesn't hide unintentionally.

But is it possible to stop event propagation using vue toastification?

@sshkpp
Copy link

sshkpp commented Mar 21, 2024

I have the same problem. I fixed it with "persistent" property of v-dialog, but it's not a very good fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants