fix(controls): use OR operator to determine isInteractive state
This commit is contained in:
@@ -25,7 +25,7 @@ const emit = defineEmits<{
|
|||||||
|
|
||||||
const { nodesDraggable, nodesConnectable, elementsSelectable, setInteractive, zoomIn, zoomOut, fitView } = useVueFlow()
|
const { nodesDraggable, nodesConnectable, elementsSelectable, setInteractive, zoomIn, zoomOut, fitView } = useVueFlow()
|
||||||
|
|
||||||
const isInteractive = computed(() => nodesDraggable.value && nodesConnectable.value && elementsSelectable.value)
|
const isInteractive = computed(() => nodesDraggable.value || nodesConnectable.value || elementsSelectable.value)
|
||||||
|
|
||||||
function onZoomInHandler() {
|
function onZoomInHandler() {
|
||||||
zoomIn()
|
zoomIn()
|
||||||
|
|||||||
Reference in New Issue
Block a user