embiem / react-canvas-draw

React Component for drawing in canvas
https://embiem.github.io/react-canvas-draw/
MIT License
902 stars 315 forks source link

`onChange` triggers #81

Closed martin056 closed 3 years ago

martin056 commented 4 years ago

If the above points are not intentional, I can make a PR and fix them :)

ziaongit commented 4 years ago

I did it like bellow for clear.

 const handleOnchange = () => {
  // This will work for clear
  };
<CanvasDraw
 onChange={handleOnchange}
>
embiem commented 3 years ago

Should be the same issue as described in #93, so I'll close this and track the issue in 93.