@wix/form-public 0.225.0 → 0.227.0
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.
- package/dist/index.cjs +3 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +3 -1
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -33166,7 +33166,9 @@ var useSubmit = ({ validateAndScrollToError, submitAction, onSubmit, onSubmitSuc
|
|
|
33166
33166
|
} else if (action === SubmitSuccessAction.REDIRECT) {
|
|
33167
33167
|
redirectToExternalUrl(submitSettings?.redirectOptions);
|
|
33168
33168
|
} else if (action === SubmitSuccessAction.POPUP) {
|
|
33169
|
-
|
|
33169
|
+
setTimeout(() => {
|
|
33170
|
+
openPopup?.(submitSettings?.popupOptions?.popupId ?? "", {});
|
|
33171
|
+
}, 500);
|
|
33170
33172
|
}
|
|
33171
33173
|
setSubmitFailureCode(void 0);
|
|
33172
33174
|
setSubmitFailureMessage(void 0);
|