Closed martin056 closed 3 years ago
I did it like bellow for clear.
const handleOnchange = () => {
// This will work for clear
};
<CanvasDraw
onChange={handleOnchange}
>
Should be the same issue as described in #93, so I'll close this and track the issue in 93.
clear()
doesn't triggeronChange
undo()
triggersonChange
several (equal to the remaining lines) timesIf the above points are not intentional, I can make a PR and fix them :)