File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -43,8 +43,9 @@ describe('MatButton', () => {
43
43
44
44
it ( 'should expose the ripple instance' , ( ) => {
45
45
const fixture = TestBed . createComponent ( TestApp ) ;
46
- const button = fixture . debugElement . query ( By . css ( 'button' ) ) . componentInstance as MatButton ;
46
+ fixture . detectChanges ( ) ;
47
47
48
+ const button = fixture . debugElement . query ( By . directive ( MatButton ) ) . componentInstance ;
48
49
expect ( button . ripple ) . toBeTruthy ( ) ;
49
50
} ) ;
50
51
Original file line number Diff line number Diff line change @@ -70,7 +70,7 @@ export const _MatButtonMixinBase:
70
70
button[mat-flat-button]` ,
71
71
exportAs : 'matButton' ,
72
72
host : {
73
- '[disabled]' : 'disabled || null' ,
73
+ '[attr. disabled]' : 'disabled || null' ,
74
74
'[class._mat-animation-noopable]' : '_animationMode === "NoopAnimations"' ,
75
75
} ,
76
76
templateUrl : 'button.html' ,
You can’t perform that action at this time.
0 commit comments