From 430b72c1d08931537e4603f94950387bfab649a4 Mon Sep 17 00:00:00 2001 From: Carlos Valente Date: Fri, 20 Dec 2024 12:56:46 +0100 Subject: [PATCH] fix: missing return when data is handled --- apps/client/src/common/components/input/time-input/TimeInput.tsx | 1 + .../cuesheet-table/cuesheet-table-elements/TimeInputDuration.tsx | 1 + 2 files changed, 2 insertions(+) diff --git a/apps/client/src/common/components/input/time-input/TimeInput.tsx b/apps/client/src/common/components/input/time-input/TimeInput.tsx index 502bee511..034550edd 100644 --- a/apps/client/src/common/components/input/time-input/TimeInput.tsx +++ b/apps/client/src/common/components/input/time-input/TimeInput.tsx @@ -55,6 +55,7 @@ export default function TimeInput(props: TimeInputProps) { // we dont know the values in the rundown, escalate to handler if (newValue.startsWith('p') || newValue.startsWith('+')) { submitHandler(name, newValue); + return true; } const valueInMillis = parseUserTime(newValue); diff --git a/apps/client/src/views/cuesheet/cuesheet-table/cuesheet-table-elements/TimeInputDuration.tsx b/apps/client/src/views/cuesheet/cuesheet-table/cuesheet-table-elements/TimeInputDuration.tsx index 70ba3a4c2..1e07fa5f9 100644 --- a/apps/client/src/views/cuesheet/cuesheet-table/cuesheet-table-elements/TimeInputDuration.tsx +++ b/apps/client/src/views/cuesheet/cuesheet-table/cuesheet-table-elements/TimeInputDuration.tsx @@ -50,6 +50,7 @@ export default function TimeInputDuration(props: TimeInputDurationProps) { // we dont know the values in the rundown, escalate to handler if (newValue.startsWith('p') || newValue.startsWith('+')) { onSubmit(newValue); + return; } const valueInMillis = parseUserTime(newValue);