feat(forklifts): added backend forklift stuff and frontend companies

This commit is contained in:
2025-11-02 16:16:35 -06:00
parent a6cc17ccb1
commit 50cde2d8d2
52 changed files with 20619 additions and 32 deletions

View File

@@ -159,16 +159,25 @@ function RouteComponent() {
updateServer.mutate({ token, field, value: newValue });
}
};
let submitting = false;
return (
<Input
value={localValue}
onChange={(e) => setLocalValue(e.currentTarget.value)}
onBlur={(e) => handleSubmit(e.currentTarget.value.trim())}
onBlur={(e) => {
if (!submitting) {
submitting = true;
handleSubmit(e.currentTarget.value.trim());
setTimeout(() => (submitting = false), 100); // reset after slight delay
}
}}
onKeyDown={(e) => {
if (e.key === "Enter") {
e.preventDefault();
handleSubmit(e.currentTarget.value.trim());
e.currentTarget.blur(); // exit edit mode
setTimeout(() => (submitting = false), 100);
}
}}
/>