Maronato / vue-toastification

Vue notifications made easy!
https://vue-toastification.maronato.dev
MIT License
3.03k stars 139 forks source link

Firing emits in listeners not working #367

Open Pinnokkio opened 1 year ago

Pinnokkio commented 1 year ago

Versions

Describe the bug

Emits do not fire when using custom components.

Expected behavior

Emits will fire. Instead of breaking the page, Y should happen...

Steps to reproduce

Reproduction demo. Steps:

  1. Create a toastification with a custom component which contains a button like in the example at https://codesandbox.io/s/vue-template-w2w2c
  2. Try to fire an event inside listener function using this.$emit
  3. Nothing happens.

Your Environment

Additional context

john-landgrave commented 1 year ago

Can confirm that this is an issue.