Skip to content

Commit

Permalink
chore: add missing required overrides to symbol properties
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 674404931
  • Loading branch information
material-web-copybara authored and copybara-github committed Sep 13, 2024
1 parent 44c13cd commit 28d8a1e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions select/internal/select.ts
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ export abstract class Select extends selectBaseClass {
this.nativeErrorText = '';
}

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

Expand Down Expand Up @@ -834,11 +834,11 @@ export abstract class Select extends selectBaseClass {
this.field?.click();
}

[createValidator]() {
override [createValidator]() {
return new SelectValidator(() => this);
}

[getValidityAnchor]() {
override [getValidityAnchor]() {
return this.field;
}
}
6 changes: 3 additions & 3 deletions textfield/internal/text-field.ts
Original file line number Diff line number Diff line change
Expand Up @@ -768,18 +768,18 @@ export abstract class TextField extends textFieldBaseClass {
this.getInputOrTextarea().focus();
}

[createValidator](): Validator<unknown> {
override [createValidator](): Validator<unknown> {
return new TextFieldValidator(() => ({
state: this,
renderedControl: this.inputOrTextarea,
}));
}

[getValidityAnchor](): HTMLElement | null {
override [getValidityAnchor](): HTMLElement | null {
return this.inputOrTextarea;
}

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

Expand Down

0 comments on commit 28d8a1e

Please sign in to comment.