Skip to content

Commit 48c2e59

Browse files
committed
fix(aria/toolbar): remove unnnecessary validation methods
1 parent 34bcffb commit 48c2e59

2 files changed

Lines changed: 0 additions & 15 deletions

File tree

src/aria/private/toolbar/toolbar.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -198,10 +198,4 @@ export class ToolbarPattern<V> {
198198
this.inputs.activeItem.set(firstItem);
199199
}
200200
}
201-
202-
/** Validates the state of the toolbar and returns a list of accessibility violations. */
203-
validate(): string[] {
204-
const violations: string[] = [];
205-
return violations;
206-
}
207201
}

src/aria/toolbar/toolbar.ts

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -109,15 +109,6 @@ export class Toolbar<V> {
109109
private _hasBeenFocused = signal(false);
110110

111111
constructor() {
112-
afterRenderEffect(() => {
113-
if (typeof ngDevMode === 'undefined' || ngDevMode) {
114-
const violations = this._pattern.validate();
115-
for (const violation of violations) {
116-
console.error(violation);
117-
}
118-
}
119-
});
120-
121112
afterRenderEffect(() => {
122113
if (!this._hasBeenFocused()) {
123114
this._pattern.setDefaultState();

0 commit comments

Comments
 (0)