jerosoler / Drawflow

Simple flow library 🖥️🖱️
https://jerosoler.github.io/Drawflow/
MIT License
4.65k stars 722 forks source link

Use custom directives whit Drawflow #324

Closed dhanos23 closed 2 years ago

dhanos23 commented 2 years ago

Hi

I tried to use a custom directive in a node of Drawflow, I used vue 3 and composition api. I used the official documentation of vue, but, when I tried to put the directive in the node I had an error:

TypeError: Cannot read properties of undefined (reading 'deep') at withDirectives (app.js:10003) at app.js:26790 at renderFnWithContext (app.js:7410) at renderSlot (app.js:12818) at Proxy.render (app.js:24862) at renderComponentRoot (app.js:7453) at ReactiveEffect.componentUpdateFn [as fn] (app.js:11200) at ReactiveEffect.run (app.js:5829) at setupRenderEffect (app.js:11326) at mountComponent (app.js:11109)

This is the directive example that I used

app.directive('highlight', { updated() { console.log('hola'); }, });

and my node is