Skip to content

Commit

Permalink
fix: badge modal set zindex attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
shuashuai committed Sep 24, 2024
1 parent cfbe458 commit 7ff8038
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion ui/src/components/Modal/BadgeModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 7ff8038

Please sign in to comment.