From ace9bca81db9ae84c7f932b2b2df165cad248a3a Mon Sep 17 00:00:00 2001 From: Andrew Kingston Date: Sat, 22 Apr 2023 16:42:26 +0100 Subject: [PATCH] Update textarea focus again --- .../src/components/grid/cells/LongFormCell.svelte | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/frontend-core/src/components/grid/cells/LongFormCell.svelte b/packages/frontend-core/src/components/grid/cells/LongFormCell.svelte index 28d3f8766b..00e12dc6a3 100644 --- a/packages/frontend-core/src/components/grid/cells/LongFormCell.svelte +++ b/packages/frontend-core/src/components/grid/cells/LongFormCell.svelte @@ -31,6 +31,9 @@ isOpen = true await tick() textarea.focus() + if (value?.length > 100) { + textarea.setSelectionRange(0, 0) + } } const close = () => {