Skip to content

Commit a639c85

Browse files
committed
refactor(overlays): use different el
1 parent 5317672 commit a639c85

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

core/src/utils/overlays.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -754,7 +754,7 @@ const overlayAnimation = async (
754754

755755
animation.beforeAddWrite(() => {
756756
console.log('beforeAddWrite');
757-
aniRoot.setAttribute('aria-hidden', 'true');
757+
baseEl.setAttribute('aria-hidden', 'true');
758758

759759
if (overlay.keyboardClose) {
760760
const activeElement = baseEl.ownerDocument!.activeElement as HTMLElement;
@@ -765,7 +765,7 @@ const overlayAnimation = async (
765765
});
766766

767767
animation.afterAddWrite(() => {
768-
aniRoot.removeAttribute('aria-hidden');
768+
baseEl.removeAttribute('aria-hidden');
769769
console.log('afterAddWrite');
770770
});
771771

0 commit comments

Comments
 (0)