Skip to content

Commit

Permalink
fix: badge modal zindex
Browse files Browse the repository at this point in the history
  • Loading branch information
shuashuai committed Oct 18, 2024
1 parent 43c09e8 commit e893a65
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ui/src/components/Modal/BadgeModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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');

Expand Down

0 comments on commit e893a65

Please sign in to comment.