Skip to content

Commit d8ddc4d

Browse files
committed
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
1 parent 9154687 commit d8ddc4d

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.changeset/chilly-dragons-collect.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@vue-flow/core": patch
3+
---
4+
5+
Use `post` flush timing to re-observe node size when toggling node visibility

packages/core/src/components/Nodes/NodeWrapper.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ const NodeWrapper = defineComponent({
173173
})
174174
}
175175
},
176-
{ immediate: true, flush: 'pre' },
176+
{ immediate: true, flush: 'post' },
177177
)
178178
})
179179

0 commit comments

Comments
 (0)