A Q&A platform software for teams at any scales. Whether it's a community forum, help center, or knowledge management platform, you can always count on Apache Answer.
fix: toast hook close func
shuaiee729d824730
diff --git a/ui/src/hooks/useToast/index.tsx b/ui/src/hooks/useToast/index.tsxindex 42f8143d..c3f18e1a 100644--- a/ui/src/hooks/useToast/index.tsx+++ b/ui/src/hooks/useToast/index.tsx@@ -28,8 +28,11 @@ const useToast = () => {});const onClose = () => {- //- root.unmount();+ const parent = document.querySelector('.page-wrap');+ if (parent?.contains(div)) {+ parent.removeChild(div);+ }+setShow(false);};