vue-toastification icon indicating copy to clipboard operation
vue-toastification copied to clipboard

Can I not propagate the click action?

Open lampsbr opened this issue 1 year ago • 2 comments

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 avatar Apr 20 '23 20:04 lampsbr

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?

lampsbr avatar Apr 20 '23 20:04 lampsbr

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

sshkpp avatar Mar 21 '24 13:03 sshkpp