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