mirror of
https://github.com/documenso/documenso.git
synced 2025-11-14 00:32:43 +10:00
added onchange handler
This commit is contained in:
@ -134,7 +134,6 @@ export const SignaturePad = ({
|
|||||||
});
|
});
|
||||||
|
|
||||||
onChange?.($el.current.toDataURL());
|
onChange?.($el.current.toDataURL());
|
||||||
|
|
||||||
ctx.save();
|
ctx.save();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -193,6 +192,7 @@ export const SignaturePad = ({
|
|||||||
const pathData = new Path2D(getSvgPathFromStroke(getStroke(line, perfectFreehandOptions)));
|
const pathData = new Path2D(getSvgPathFromStroke(getStroke(line, perfectFreehandOptions)));
|
||||||
ctx?.fill(pathData);
|
ctx?.fill(pathData);
|
||||||
});
|
});
|
||||||
|
onChange?.($el.current.toDataURL());
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user