This is an automated email from the ASF dual-hosted git repository.

robin0716 pushed a commit to branch test
in repository https://gitbox.apache.org/repos/asf/incubator-answer.git

commit d55383f7fb42ae6ba04100e380ebd3d3fffb6876
Author: shuai <[email protected]>
AuthorDate: Tue Sep 24 10:30:13 2024 +0800

    fix: badge modal set zindex attribute
---
 ui/src/components/Modal/BadgeModal.tsx | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/ui/src/components/Modal/BadgeModal.tsx 
b/ui/src/components/Modal/BadgeModal.tsx
index 303c9677..c0cf4cc3 100644
--- a/ui/src/components/Modal/BadgeModal.tsx
+++ b/ui/src/components/Modal/BadgeModal.tsx
@@ -72,7 +72,10 @@ const BadgeModal: FC<BadgeModalProps> = ({ badge, visible }) 
=> {
     const bgNode = document.documentElement || document.body;
 
     if (visible) {
-      const paranetNode = document.getElementById('badgeModal')?.parentNode;
+      const badgeModalNode = document.getElementById('badgeModal');
+      const paranetNode = badgeModalNode?.parentNode;
+
+      badgeModalNode?.setAttribute('style', 'z-index: 1');
 
       bg1 = new AnimateGift({
         elm: paranetNode,

Reply via email to