@douglasneuroinformatics/libui 3.8.1 → 3.8.2
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/components.js
CHANGED
|
@@ -3483,7 +3483,9 @@ var Form = ({
|
|
|
3483
3483
|
}
|
|
3484
3484
|
};
|
|
3485
3485
|
const handleSubmit = async (event) => {
|
|
3486
|
-
const minSubmitTime = new Promise(
|
|
3486
|
+
const minSubmitTime = new Promise(
|
|
3487
|
+
(resolve) => suspendWhileSubmitting ? setTimeout(resolve, 500) : resolve()
|
|
3488
|
+
);
|
|
3487
3489
|
try {
|
|
3488
3490
|
setIsSubmitting(true);
|
|
3489
3491
|
event.preventDefault();
|