fix(core): use post flush to re-observe nodes after toggling visibility (#1517)

* fix(core): use `post` flush to re-observe nodes after toggling visibility

* chore(changeset): add

* chore(core): cleanup
This commit is contained in:
Braks
2024-07-01 15:28:34 +02:00
parent 9154687410
commit d8ddc4de6e
2 changed files with 6 additions and 1 deletions

View File

@@ -0,0 +1,5 @@
---
"@vue-flow/core": patch
---
Use `post` flush timing to re-observe node size when toggling node visibility

View File

@@ -173,7 +173,7 @@ const NodeWrapper = defineComponent({
})
}
},
{ immediate: true, flush: 'pre' },
{ immediate: true, flush: 'post' },
)
})