Skip to content

Commit 28d8a1e

Browse files
chore: add missing required overrides to symbol properties
PiperOrigin-RevId: 674404931
1 parent 44c13cd commit 28d8a1e

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

select/internal/select.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,7 @@ export abstract class Select extends selectBaseClass {
311311
this.nativeErrorText = '';
312312
}
313313

314-
[onReportValidity](invalidEvent: Event | null) {
314+
override [onReportValidity](invalidEvent: Event | null) {
315315
// Prevent default pop-up behavior.
316316
invalidEvent?.preventDefault();
317317

@@ -834,11 +834,11 @@ export abstract class Select extends selectBaseClass {
834834
this.field?.click();
835835
}
836836

837-
[createValidator]() {
837+
override [createValidator]() {
838838
return new SelectValidator(() => this);
839839
}
840840

841-
[getValidityAnchor]() {
841+
override [getValidityAnchor]() {
842842
return this.field;
843843
}
844844
}

textfield/internal/text-field.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -768,18 +768,18 @@ export abstract class TextField extends textFieldBaseClass {
768768
this.getInputOrTextarea().focus();
769769
}
770770

771-
[createValidator](): Validator<unknown> {
771+
override [createValidator](): Validator<unknown> {
772772
return new TextFieldValidator(() => ({
773773
state: this,
774774
renderedControl: this.inputOrTextarea,
775775
}));
776776
}
777777

778-
[getValidityAnchor](): HTMLElement | null {
778+
override [getValidityAnchor](): HTMLElement | null {
779779
return this.inputOrTextarea;
780780
}
781781

782-
[onReportValidity](invalidEvent: Event | null) {
782+
override [onReportValidity](invalidEvent: Event | null) {
783783
// Prevent default pop-up behavior.
784784
invalidEvent?.preventDefault();
785785

0 commit comments

Comments
 (0)