This commit is contained in:
giuliana
2025-01-24 12:34:59 +00:00
parent 397c72aadd
commit 80d4fa63ec
2 changed files with 3 additions and 3 deletions

View File

@@ -189,7 +189,7 @@ export class Checkbox implements ComponentInterface {
name,
value,
alignment,
required
required,
} = this;
const mode = getIonMode(this);
const path = getSVGPath(mode, indeterminate);

View File

@@ -65,7 +65,7 @@ describe('ion-checkbox: required', () => {
});
const checkbox = page.body.querySelector('ion-checkbox')!;
const nativeInput = checkbox.shadowRoot?.querySelector("input[type=checkbox]")!;
const nativeInput = checkbox.shadowRoot?.querySelector('input[type=checkbox]')!;
expect(nativeInput.hasAttribute('required')).toBeTruthy();
});
@@ -79,7 +79,7 @@ describe('ion-checkbox: required', () => {
});
const checkbox = page.body.querySelector('ion-checkbox')!;
const nativeInput = checkbox.shadowRoot?.querySelector("input[type=checkbox]")!;
const nativeInput = checkbox.shadowRoot?.querySelector('input[type=checkbox]')!;
expect(nativeInput.hasAttribute('required')).toBeFalsy();
});