From 61c5839af9a2233b3dc6c4c73da31c429c0b9a41 Mon Sep 17 00:00:00 2001 From: Johan Date: Thu, 27 Jan 2022 14:38:55 +0100 Subject: [PATCH] Set initial edit-state to false for isomorphic components (#11) --- packages/djedi-json/src/core/Editable/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/djedi-json/src/core/Editable/index.tsx b/packages/djedi-json/src/core/Editable/index.tsx index 853f6ff..5f9e376 100644 --- a/packages/djedi-json/src/core/Editable/index.tsx +++ b/packages/djedi-json/src/core/Editable/index.tsx @@ -37,7 +37,7 @@ const Editable: React.FC<{ const { setTree } = useCMS(); // STATES - const [editing, setEdit] = React.useState(isomorphic); + const [editing, setEdit] = React.useState(false); const [over, setOver] = React.useState(false); const append = React.useCallback(