@flozy/editor 11.0.4 → 11.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -92,9 +92,17 @@ const SignaturePopup = props => {
|
|
92
92
|
};
|
93
93
|
const onChange = e => {
|
94
94
|
e?.stopPropagation();
|
95
|
+
const {
|
96
|
+
name,
|
97
|
+
value
|
98
|
+
} = e.target;
|
99
|
+
const fieldMap = {
|
100
|
+
name: "signedBy",
|
101
|
+
email: "signedByEmail"
|
102
|
+
};
|
95
103
|
setSignedData({
|
96
104
|
...signedData,
|
97
|
-
[
|
105
|
+
[fieldMap[name] || name]: value
|
98
106
|
});
|
99
107
|
};
|
100
108
|
const onBrushSize = val => () => {
|