Skip to content

Commit

Permalink
Add hide only if it is not under modal. (#1420)
Browse files Browse the repository at this point in the history
  • Loading branch information
seanchoi-dev authored Oct 17, 2023
1 parent 0a8dae7 commit e6d76b1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion libs/blocks/adobetv/adobetv.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ const loadAdobeTv = (a) => {
};

export default function init(a) {
a.classList.add('hide');
if (!a.closest('.dialog-modal')) a.classList.add('hide');
if (a.textContent.includes('no-lazy')) {
loadAdobeTv(a);
} else {
Expand Down
2 changes: 1 addition & 1 deletion libs/blocks/video/video.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ const loadVideo = (a) => {
};

export default function init(a) {
a.classList.add('hide');
if (!a.closest('.dialog-modal')) a.classList.add('hide');
if (a.textContent.includes('no-lazy')) {
loadVideo(a);
} else {
Expand Down

0 comments on commit e6d76b1

Please sign in to comment.