From f0eefbd0c883088d30200355547011967a63c82e Mon Sep 17 00:00:00 2001 From: Cael Date: Thu, 31 Oct 2024 17:46:53 +0800 Subject: [PATCH] fix: dismiss toast after uncheck use markdown --- src/app/form/components/Form/Form.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/app/form/components/Form/Form.tsx b/src/app/form/components/Form/Form.tsx index 88569e4..bca8a81 100644 --- a/src/app/form/components/Form/Form.tsx +++ b/src/app/form/components/Form/Form.tsx @@ -48,6 +48,7 @@ export default function Form() { function handleUseMarkdown(event: React.ChangeEvent) { setUseMarkdown(event.target.checked); if (event.target.checked) toast(CustomToast); + else toast.dismiss(); } // handle submit result