fix(node-toolbar): await target before teleporting to viewport

Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>
This commit is contained in:
braks
2022-12-29 14:18:10 +01:00
committed by Braks
parent 5402c0ec21
commit 6b4a21ca81

View File

@@ -82,7 +82,7 @@ export default {
</script>
<template>
<Teleport :to="viewportRef">
<Teleport :to="viewportRef" :disabled="!viewportRef">
<div v-if="isActive && nodes.length" v-bind="$attrs" :style="wrapperStyle" class="vue-flow__node-toolbar">
<slot />
</div>