Skip to content

Commit 72494db

Browse files
lint
1 parent 82eb743 commit 72494db

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

core/src/components/checkbox/test/checkbox.spec.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,4 +54,3 @@ describe('ion-checkbox: indeterminate', () => {
5454
expect(checkbox.getAttribute('aria-checked')).toBe('mixed');
5555
});
5656
});
57-

core/src/components/toggle/test/toggle.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ describe('ion-toggle: required', () => {
8787
});
8888

8989
const toggle = page.body.querySelector('ion-toggle')!;
90-
const nativeInput = toggle.shadowRoot?.querySelector("input[role=switch]")!;
90+
const nativeInput = toggle.shadowRoot?.querySelector('input[role=switch]')!;
9191

9292
expect(nativeInput.hasAttribute('required')).toBeTruthy();
9393
});
@@ -101,7 +101,7 @@ describe('ion-toggle: required', () => {
101101
});
102102

103103
const toggle = page.body.querySelector('ion-toggle')!;
104-
const nativeInput = toggle.shadowRoot?.querySelector("input[role=switch]")!;
104+
const nativeInput = toggle.shadowRoot?.querySelector('input[role=switch]')!;
105105

106106
expect(nativeInput.hasAttribute('required')).toBeFalsy();
107107
});

core/src/components/toggle/toggle.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,8 @@ export class Toggle implements ComponentInterface {
297297
}
298298

299299
render() {
300-
const { activated, color, checked, disabled, el, justify, labelPlacement, inputId, name, alignment, required } = this;
300+
const { activated, color, checked, disabled, el, justify, labelPlacement, inputId, name, alignment, required } =
301+
this;
301302

302303
const mode = getIonMode(this);
303304
const value = this.getValue();

0 commit comments

Comments
 (0)