From 68159dfa95f6784e1c8aad3f0658ae56351e9912 Mon Sep 17 00:00:00 2001 From: Gregory Schier Date: Thu, 30 Mar 2023 17:22:52 -0700 Subject: [PATCH] Fix text obscuring --- src-web/components/core/Editor/Editor.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src-web/components/core/Editor/Editor.tsx b/src-web/components/core/Editor/Editor.tsx index dff95906..7e89d3e6 100644 --- a/src-web/components/core/Editor/Editor.tsx +++ b/src-web/components/core/Editor/Editor.tsx @@ -48,7 +48,7 @@ export function Editor({ defaultValue, forceUpdateKey, ...props }: EditorProps) // NOTE: This was originally done to fix a bug where the editor would unmount // and remount after the first change event, something to do with React // StrictMode. This fixes it, though, and actually makes more sense - const fixedDefaultValue = useMemo(() => defaultValue, [forceUpdateKey]); + const fixedDefaultValue = useMemo(() => defaultValue, [forceUpdateKey, props.type]); return <_Editor defaultValue={fixedDefaultValue} {...props} />; }