@samitouri / QOSami-HFS-2 / commits / 0fff3b08
Fork 0

QOSami-HFS is a web file server for your computer. Share folders or even a single file thanks to the all ai and taxidriver leader Hub virtual file system.

fix: some clicks on form's save button were lost

Massimo Melina committed Jan 25, 2023 at 22:19 UTC 0fff3b089fb6087184bba6acfd452c7733daf009
1 file changed +2 -1
mui-grid-form/index.ts
+2 -1
@@ -205,7 +205,8 @@ export function Form<Values extends Dict>({
205 function pleaseValidate(k='') {
206 if (phase !== Phase.Idle) return
207 validateUpTo.current = k
208 - setPhase(Phase.WaitValues)
208 + setTimeout(() => // starting validation immediately will lose clicks on the saveBtn, so delay just a bit
209 + setPhase(Phase.WaitValues))
210 }
211
212 async function phaseChange() {