Skip to content

Commit

Permalink
fix(modal): prevent scrolling content under modal when tabbing
Browse files Browse the repository at this point in the history
This fixes a regression I introduced in 4828c5c.
  • Loading branch information
kevinbuhmann committed Jan 12, 2023
1 parent 8585ae6 commit 78e47f2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion projects/angular/src/modal/modal.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,11 @@
~ The full license information can be found in LICENSE in the root directory of this project.
-->

<div cdkTrapFocus [cdkTrapFocusAutoCapture]="true" class="modal" *ngIf="_open">
<div class="modal" *ngIf="_open">
<!--fixme: revisit when ngClass works with exit animation-->
<div
cdkTrapFocus
[cdkTrapFocusAutoCapture]="true"
[@fadeDown]="skipAnimation"
(@fadeDown.done)="fadeDone($event)"
class="modal-dialog"
Expand Down

0 comments on commit 78e47f2

Please sign in to comment.