@douglasneuroinformatics/libui 3.8.0 → 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();
|
|
@@ -3561,7 +3563,7 @@ var Form = ({
|
|
|
3561
3563
|
Button,
|
|
3562
3564
|
{
|
|
3563
3565
|
"aria-label": "Submit",
|
|
3564
|
-
className: "flex w-
|
|
3566
|
+
className: "flex w-full items-center justify-center gap-2",
|
|
3565
3567
|
disabled: readOnly || isSuspended,
|
|
3566
3568
|
type: "submit",
|
|
3567
3569
|
variant: "primary",
|