From 30e1ecd67f545f384609de7b8ec5c9d58d718f1a Mon Sep 17 00:00:00 2001 From: Andrew Kingston Date: Mon, 27 Feb 2023 15:41:35 +0000 Subject: [PATCH] Fix date cells in sheets --- packages/frontend-core/src/components/sheet/Sheet.svelte | 2 +- .../frontend-core/src/components/sheet/cells/DateCell.svelte | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/frontend-core/src/components/sheet/Sheet.svelte b/packages/frontend-core/src/components/sheet/Sheet.svelte index 7ae47d4d53..7b616706cc 100644 --- a/packages/frontend-core/src/components/sheet/Sheet.svelte +++ b/packages/frontend-core/src/components/sheet/Sheet.svelte @@ -224,7 +224,7 @@ sticky={column.idx === 0} reorderSource={$reorder.columnIdx === column.idx} reorderTarget={$reorder.swapColumnIdx === column.idx} - on:mousedown={column.idx === 123 + on:mousedown={column.idx === 0 ? null : e => reorder.actions.startReordering(column.idx, e)} width={column.width} diff --git a/packages/frontend-core/src/components/sheet/cells/DateCell.svelte b/packages/frontend-core/src/components/sheet/cells/DateCell.svelte index 887bf11c65..b4529a02cd 100644 --- a/packages/frontend-core/src/components/sheet/cells/DateCell.svelte +++ b/packages/frontend-core/src/components/sheet/cells/DateCell.svelte @@ -37,7 +37,7 @@ onChange(e.detail)} - appendTo={document.getElementById("flatpickr-root")} + appendTo={document.documentElement} enableTime={!dateOnly} {timeOnly} time24hr