react-xarrows icon indicating copy to clipboard operation
react-xarrows copied to clipboard

Fix line SVG dotted animation in strict mode

Open Reflejo opened this issue 3 years ago • 0 comments

This was broken in strict mode. I honestly am not sure how this worked before since lineDrawAnimRef (https://github.com/Eliav2/react-xarrows/blob/master/src/Xarrow/Xarrow.tsx#L175) will always be undefined (if no drawing animation happens), therefore handleDrawAmimEnd is never called.

Fixes https://github.com/Eliav2/react-xarrows/issues/151

Reflejo avatar Mar 12 '23 05:03 Reflejo