You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@answer.apache.org by sh...@apache.org on 2024/09/24 02:30:23 UTC
(incubator-answer) branch feat/1.4.1/badge-style updated: fix: badge modal set zindex attribute
This is an automated email from the ASF dual-hosted git repository.
shuai pushed a commit to branch feat/1.4.1/badge-style
in repository https://gitbox.apache.org/repos/asf/incubator-answer.git
The following commit(s) were added to refs/heads/feat/1.4.1/badge-style by this push:
new 7ff80389 fix: badge modal set zindex attribute
7ff80389 is described below
commit 7ff803890725fdd68b82b9f20d924ae5eea9071d
Author: shuai <li...@sifou.com>
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,