Skip to content

Controls InteractionChange property closed #472

Answered by bcakmakoglu
omeryilmazinfo asked this question in Q&A
Discussion options

You must be logged in to vote

Could you elaborate what you want to do specifically?
You want to disable all interactions?
Adding :on-interaction-change="false" doesn't do anything ^^
First you'd have to use it as @interaction-change="handleInteractionChange" as it's an event that's emitted and not a prop you can pass to the Controls.
Second, it listening to the event does not block interactions.

If you want to disable interactions you can use the setInteractive function of useVueFlow

const { setInteractive } = useVueFlow()

setInteractive(false)

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by omeryilmazinfo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
question Further information is requested
2 participants