Open ghost opened 4 years ago
@ffiliz I am getting the same issue. Its behaving little weird for me.
<FlowChart chart={chart.toJS()} callbacks={{ ...chartActions, }} Components={{ NodeInner: NodeInnerDefault}}/>
Above code works, but if i use a function in between for NodeInner
<FlowChart chart={chart.toJS()} callbacks={{ ...chartActions, }} Components={{ NodeInner: (args) => NodeInnerDefault(args)}}/>
This fails to trigger any callbacks. I tried with a custom function as well
function({ node }){ return <div className={cns(styles.Node)}> {node.properties.name || 'Unnamed Action'} </div> }
This also fails the same way. I tried almost everything but couldn't find any reason. I am using react version 16.9.0 Let me know if you need any more info.
I am also facing the same issue. onClick is not working for NodeInner.
@91ranjan I am using version 0.0.9 because I can not find solution
I couldn't solved
Selected in state does not work when we click the button in Custom Node İnner
https://mrblenny.github.io/react-flow-chart/index.html?path=/story/custom-components--node-inner
link delete not working
https://mrblenny.github.io/react-flow-chart/index.html?path=/story/custom-components--canvas-link