@flozy/editor 1.6.1 → 1.6.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -20,7 +20,8 @@ const SignaturePopup = props => {
20
20
  className
21
21
  } = props;
22
22
  const {
23
- readOnly
23
+ readOnly,
24
+ metadata
24
25
  } = customProps;
25
26
  const [open, setOpen] = useState(false);
26
27
  const [tab, setTab] = useState(0);
@@ -41,7 +42,13 @@ const SignaturePopup = props => {
41
42
  resource_id: customProps?.page_id
42
43
  });
43
44
  onSave(signedData);
44
- handleClose();
45
+ // manual delay
46
+ setTimeout(() => {
47
+ if (metadata && metadata?.actionHandler) {
48
+ metadata?.actionHandler("signed", signedData);
49
+ }
50
+ handleClose();
51
+ }, 0);
45
52
  };
46
53
  const handleClear = () => {
47
54
  onClear();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flozy/editor",
3
- "version": "1.6.1",
3
+ "version": "1.6.2",
4
4
  "description": "An Editor for flozy app brain",
5
5
  "files": [
6
6
  "dist"