Commit bb69f3c
committed
fix(material/sidenav): incorrectly trapping focus in some cases (#32699)
In #27355 the sidenav was changed to trap focus if the container has a backdrop. This can be incorrect, because the sidenav that's causing the backdrop to be shown might not be open.
These changes switch to enabling focus trapping if the backdrop is actually visible.
Fixes #32661.
(cherry picked from commit c70a473)1 parent 9b54cb2 commit bb69f3c
2 files changed
Lines changed: 30 additions & 1 deletion
File tree
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
714 | 714 | | |
715 | 715 | | |
716 | 716 | | |
| 717 | + | |
| 718 | + | |
| 719 | + | |
| 720 | + | |
| 721 | + | |
| 722 | + | |
| 723 | + | |
| 724 | + | |
| 725 | + | |
| 726 | + | |
| 727 | + | |
| 728 | + | |
| 729 | + | |
| 730 | + | |
| 731 | + | |
| 732 | + | |
717 | 733 | | |
718 | 734 | | |
719 | 735 | | |
| |||
1418 | 1434 | | |
1419 | 1435 | | |
1420 | 1436 | | |
| 1437 | + | |
| 1438 | + | |
| 1439 | + | |
| 1440 | + | |
| 1441 | + | |
| 1442 | + | |
| 1443 | + | |
| 1444 | + | |
| 1445 | + | |
| 1446 | + | |
| 1447 | + | |
| 1448 | + | |
| 1449 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
609 | 609 | | |
610 | 610 | | |
611 | 611 | | |
612 | | - | |
| 612 | + | |
613 | 613 | | |
614 | 614 | | |
615 | 615 | | |
| |||
0 commit comments