From e779f963869fcb22d73f02b6a806e3fdac978959 Mon Sep 17 00:00:00 2001 From: Ruben Fiszel Date: Mon, 12 Aug 2024 11:21:00 +0200 Subject: [PATCH] fix: improve default value handling for date & date-time in apps --- frontend/src/lib/components/DateInput.svelte | 16 ++++++++-- .../lib/components/LightweightArgInput.svelte | 22 ++++++++++---- .../components/LightweightSchemaForm.svelte | 5 +++- .../components/buttons/AppSchemaForm.svelte | 29 ++++++++++--------- 4 files changed, 50 insertions(+), 22 deletions(-) diff --git a/frontend/src/lib/components/DateInput.svelte b/frontend/src/lib/components/DateInput.svelte index 4481874625..ad4c17c2d7 100644 --- a/frontend/src/lib/components/DateInput.svelte +++ b/frontend/src/lib/components/DateInput.svelte @@ -1,6 +1,6 @@ -
+
{#each keys as argName (argName)} {#if typeof args == 'object' && schema?.properties[argName] && args} - !$connectingInput.opened && selectId(e, id, selectedComponent, $app)} > - +
+ !$connectingInput.opened && selectId(e, id, selectedComponent, $app)} + > + +
{:else}

Empty form (no property)