From 3b0bdb7d40a4814c2f9498c4a9607d639071745b Mon Sep 17 00:00:00 2001 From: Jos de Jong Date: Wed, 29 Nov 2023 10:48:07 +0100 Subject: [PATCH] fix: allow `isEditing` property to be true when in `readOnly` mode (see #342) --- src/lib/components/modes/treemode/JSONKey.svelte | 2 +- src/lib/components/modes/treemode/JSONValue.svelte | 2 +- src/lib/components/modes/treemode/TreeMode.svelte | 10 ++++------ 3 files changed, 6 insertions(+), 8 deletions(-) diff --git a/src/lib/components/modes/treemode/JSONKey.svelte b/src/lib/components/modes/treemode/JSONKey.svelte index 9efcf7a7..d53c4626 100644 --- a/src/lib/components/modes/treemode/JSONKey.svelte +++ b/src/lib/components/modes/treemode/JSONKey.svelte @@ -64,7 +64,7 @@ } -{#if isEditingKey} +{#if !context.readOnly && isEditingKey}