This is an automated email from the ASF dual-hosted git repository. shuai pushed a commit to branch test in repository https://gitbox.apache.org/repos/asf/incubator-answer.git
commit e893a656586eaaa772e66ecbb6f20143136bcc07 Author: shuai <[email protected]> AuthorDate: Fri Oct 18 12:33:46 2024 +0800 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 01983bac..18524852 100644 --- a/ui/src/components/Modal/BadgeModal.tsx +++ b/ui/src/components/Modal/BadgeModal.tsx @@ -70,8 +70,8 @@ const BadgeModal: FC<BadgeModalProps> = ({ 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');
