From 1b3bc14730a1e3642b394869909f3ecdb7551b65 Mon Sep 17 00:00:00 2001 From: yuanyxh <15766118362@139.com> Date: Wed, 8 May 2024 16:18:59 +0800 Subject: [PATCH] fix: fix background progrom error --- src/filehandle/md_editor/component/MDHandle.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/filehandle/md_editor/component/MDHandle.tsx b/src/filehandle/md_editor/component/MDHandle.tsx index 7d5ab35..a3e0f0d 100644 --- a/src/filehandle/md_editor/component/MDHandle.tsx +++ b/src/filehandle/md_editor/component/MDHandle.tsx @@ -46,7 +46,10 @@ const MDHandle: React.FC = (props) => { backgroundManager.bringToBackground({ id: handleId, icon: , - open: () => setOpen(true) + open: () => { + setOpen(true); + backgroundManager.removeBackground(handleId); + } }); };