fix: remove force-update from node
* update dimensions directly, not on next tick Signed-off-by: Braks <78412429+bcakmakoglu@users.noreply.github.com>
This commit is contained in:
@@ -119,12 +119,9 @@ onMounted(() => {
|
|||||||
)
|
)
|
||||||
|
|
||||||
watch([() => props.node.type, () => props.node.sourcePosition, () => props.node.targetPosition], () => {
|
watch([() => props.node.type, () => props.node.sourcePosition, () => props.node.targetPosition], () => {
|
||||||
nextTick(() => {
|
store.updateNodeDimensions({
|
||||||
store.updateNodeDimensions({
|
id: props.node.id,
|
||||||
id: props.node.id,
|
nodeElement: nodeElement.value,
|
||||||
nodeElement: nodeElement.value,
|
|
||||||
forceUpdate: true,
|
|
||||||
})
|
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user