File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -165,7 +165,7 @@ export class MatDrawerContent extends CdkScrollable implements AfterContentInit
165
165
// this was also done by the animations module which some internal tests seem to depend on.
166
166
// Simulate it by toggling the `hidden` attribute instead.
167
167
'[style.visibility]' : '(!_container && !opened) ? "hidden" : null' ,
168
- 'tabIndex' : '(mode !== "side") ? "-1" : null' ,
168
+ '[attr. tabIndex] ' : '(mode !== "side") ? "-1" : null' ,
169
169
} ,
170
170
changeDetection : ChangeDetectionStrategy . OnPush ,
171
171
encapsulation : ViewEncapsulation . None ,
Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ export class MatSidenavContent extends MatDrawerContent {}
47
47
templateUrl : 'drawer.html' ,
48
48
host : {
49
49
'class' : 'mat-drawer mat-sidenav' ,
50
- 'tabIndex' : '-1 ' ,
50
+ '[attr. tabIndex] ' : '(mode !== "side") ? "-1" : null ' ,
51
51
// must prevent the browser from aligning text based on value
52
52
'[attr.align]' : 'null' ,
53
53
'[class.mat-drawer-end]' : 'position === "end"' ,
You can’t perform that action at this time.
0 commit comments