Skip to content

Commit

Permalink
fix(components): fix dialog integration with angular cdk
Browse files Browse the repository at this point in the history
  • Loading branch information
owilliams320 committed Feb 20, 2025
1 parent 2cd76d9 commit 9f936e8
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions libs/components/src/dialog/dialog.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,13 @@ export class CovalentDialog extends DialogBase {

const overlayContainer = document.querySelector('.cdk-overlay-container');

setTimeout(() => {
if (overlayContainer) {
overlayContainer.removeAttribute('inert');
}
}, 200);
requestAnimationFrame(() => {
setTimeout(() => {
if (overlayContainer) {
overlayContainer.removeAttribute('inert');
}
}, 200);
});
}
}

Expand Down

0 comments on commit 9f936e8

Please sign in to comment.