Skip to content

Commit

Permalink
fix: fix background progrom error
Browse files Browse the repository at this point in the history
  • Loading branch information
yuanyxh committed May 8, 2024
1 parent fa94127 commit 1b3bc14
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/filehandle/md_editor/component/MDHandle.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,10 @@ const MDHandle: React.FC<IMDHandle> = (props) => {
backgroundManager.bringToBackground({
id: handleId,
icon: <Icon icon="bxs--file-md" color="var(--color-primary)" />,
open: () => setOpen(true)
open: () => {
setOpen(true);
backgroundManager.removeBackground(handleId);
}
});
};

Expand Down

0 comments on commit 1b3bc14

Please sign in to comment.