fix(core): correctly check if an event has any listeners bound to it (#1935)

* fix(core): separate listeners from emitter for correct check on hasListeners

Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>

* fix(core): check for listeners bound via emits

Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>

* chore(changeset): add

---------

Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>
This commit is contained in:
Braks
2025-08-28 08:50:19 +02:00
parent dd48e47d02
commit e9f0cdff3d
4 changed files with 98 additions and 49 deletions

View File

@@ -0,0 +1,5 @@
---
"@vue-flow/core": patch
---
Correctly check if an event listener was bound to the VueFlow component, using for example `@node-click` or if a listener was bound using the exposed event hooks from `useVueFlow` when determening if a listener for an event exists at all.