MrBlenny / react-flow-chart

🌊 A flexible, stateless, declarative flow chart library for react.
https://mrblenny.github.io/react-flow-chart/index.html
MIT License
1.49k stars 306 forks source link

errors received since last release. #98

Open ghost opened 4 years ago

ghost commented 4 years ago

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

91ranjan commented 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.

ChandanPHAI commented 4 years ago

I am also facing the same issue. onClick is not working for NodeInner.

ghost commented 4 years ago

@91ranjan I am using version 0.0.9 because I can not find solution