@hortonstudio/main 1.7.5 → 1.7.6
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/autoInit/form.js +2 -2
- package/index.js +1 -1
- package/package.json +1 -1
package/autoInit/form.js
CHANGED
|
@@ -658,14 +658,14 @@ export function init() {
|
|
|
658
658
|
if (redirectUrl && redirectUrl.trim()) {
|
|
659
659
|
// Set up redirect after form submission completes
|
|
660
660
|
const handleFormSubmissionComplete = () => {
|
|
661
|
-
//
|
|
661
|
+
// Minimal delay to ensure form submission is processed
|
|
662
662
|
setTimeout(() => {
|
|
663
663
|
try {
|
|
664
664
|
window.location.href = redirectUrl.trim();
|
|
665
665
|
} catch (error) {
|
|
666
666
|
console.error('Form redirect failed:', error);
|
|
667
667
|
}
|
|
668
|
-
},
|
|
668
|
+
}, 1);
|
|
669
669
|
};
|
|
670
670
|
|
|
671
671
|
// Listen for when the form submission completes
|
package/index.js
CHANGED