From e893a656586eaaa772e66ecbb6f20143136bcc07 Mon Sep 17 00:00:00 2001 From: shuai Date: Fri, 18 Oct 2024 12:33:46 +0800 Subject: [PATCH] fix: badge modal zindex --- ui/src/components/Modal/BadgeModal.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/src/components/Modal/BadgeModal.tsx b/ui/src/components/Modal/BadgeModal.tsx index 01983bac0..185248526 100644 --- a/ui/src/components/Modal/BadgeModal.tsx +++ b/ui/src/components/Modal/BadgeModal.tsx @@ -70,8 +70,8 @@ const BadgeModal: FC = ({ badge, visible }) => { const DURATION = 8000; const LENGTH = 200; const bgNode = document.documentElement || document.body; - const parentNode = document.getElementById('badgeModal')?.parentNode; const badgeModalNode = document.getElementById('badgeModal'); + const parentNode = badgeModalNode?.parentNode; badgeModalNode?.setAttribute('style', 'z-index: 1');