Skip to content

Commit f85c951

Browse files
committed
fix
1 parent f4c7f66 commit f85c951

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

src/material/slide-toggle/slide-toggle.spec.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -654,6 +654,8 @@ describe('MatSlideToggle with forms', () => {
654654

655655
it('should update checked state on click if control is checked initially', fakeAsync(() => {
656656
fixture = TestBed.createComponent(SlideToggleWithModel);
657+
fixture.detectChanges();
658+
657659
slideToggle = fixture.debugElement.query(By.directive(MatSlideToggle))!.componentInstance;
658660
labelElement = fixture.debugElement.query(By.css('label'))!.nativeElement;
659661

src/material/slide-toggle/slide-toggle.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -183,12 +183,12 @@ export class MatSlideToggle
183183
this._changeDetectorRef.markForCheck();
184184
}
185185

186-
/** Whether to hide the icon inside of the slide toggle. */
187-
@Input({transform: booleanAttribute}) hideLabel: boolean;
188-
189186
/** Whether to hide the icon inside of the slide toggle. */
190187
@Input({transform: booleanAttribute}) hideIcon: boolean;
191188

189+
/** Whether to hide label for the slide toggle. */
190+
@Input({transform: booleanAttribute}) hideLabel: boolean;
191+
192192
/** Whether the slide toggle should remain interactive when it is disabled. */
193193
@Input({transform: booleanAttribute}) disabledInteractive: boolean;
194194

0 commit comments

Comments
 (0)