Skip to content

Commit b10ce3f

Browse files
chore: add missing required overrides to symbol properties
PiperOrigin-RevId: 676149134
1 parent 40b8cb3 commit b10ce3f

File tree

4 files changed

+10
-10
lines changed

4 files changed

+10
-10
lines changed

labs/behaviors/constraint-validation_test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,15 +32,15 @@ describe('mixinConstraintValidation()', () => {
3232
return html`<div id="root"></div>`;
3333
}
3434

35-
[createValidator]() {
35+
override [createValidator]() {
3636
return new CheckboxValidator(() => this);
3737
}
3838

39-
[getValidityAnchor]() {
39+
override [getValidityAnchor]() {
4040
return this.shadowRoot?.querySelector<HTMLElement>('#root') ?? null;
4141
}
4242

43-
[getFormValue]() {
43+
override [getFormValue]() {
4444
return String(this.checked);
4545
}
4646
}

labs/behaviors/on-report-validity_test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,15 +38,15 @@ describe('mixinOnReportValidity()', () => {
3838
return html`<div id="root"></div>`;
3939
}
4040

41-
[createValidator]() {
41+
override [createValidator]() {
4242
return new CheckboxValidator(() => this);
4343
}
4444

45-
[getValidityAnchor]() {
45+
override [getValidityAnchor]() {
4646
return this.shadowRoot?.querySelector<HTMLElement>('#root') ?? null;
4747
}
4848

49-
[getFormValue]() {
49+
override [getFormValue]() {
5050
return String(this.checked);
5151
}
5252
}

radio/internal/radio.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ export class Radio extends radioBaseClass {
183183
this.checked = state === 'true';
184184
}
185185

186-
[createValidator]() {
186+
override [createValidator]() {
187187
return new RadioValidator(() => {
188188
if (!this.selectionController) {
189189
// Validation runs on superclass construction, so selection controller
@@ -195,7 +195,7 @@ export class Radio extends radioBaseClass {
195195
});
196196
}
197197

198-
[getValidityAnchor]() {
198+
override [getValidityAnchor]() {
199199
return this.container;
200200
}
201201
}

switch/internal/switch.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -241,14 +241,14 @@ export class Switch extends switchBaseClass {
241241
this.selected = state === 'true';
242242
}
243243

244-
[createValidator]() {
244+
override [createValidator]() {
245245
return new CheckboxValidator(() => ({
246246
checked: this.selected,
247247
required: this.required,
248248
}));
249249
}
250250

251-
[getValidityAnchor]() {
251+
override [getValidityAnchor]() {
252252
return this.input;
253253
}
254254
}

0 commit comments

Comments
 (0)