diff --git a/src/aria/listbox/listbox.ts b/src/aria/listbox/listbox.ts index 446ebedd7182..d25584aa9116 100644 --- a/src/aria/listbox/listbox.ts +++ b/src/aria/listbox/listbox.ts @@ -64,9 +64,8 @@ export class Listbox { /** A unique identifier for the listbox. */ private readonly _generatedId = inject(_IdGenerator).getId('ng-listbox-', true); - // TODO(wagnermaciel): https://github.com/angular/components/pull/30495#discussion_r1972601144. /** A unique identifier for the listbox. */ - protected id = computed(() => this._generatedId); + protected id = () => this._generatedId; /** A reference to the parent combobox popup, if one exists. */ private readonly _popup = inject>(ComboboxPopup, { @@ -224,9 +223,8 @@ export class Option { /** A unique identifier for the option. */ private readonly _generatedId = inject(_IdGenerator).getId('ng-option-', true); - // TODO(wagnermaciel): https://github.com/angular/components/pull/30495#discussion_r1972601144. /** A unique identifier for the option. */ - protected id = computed(() => this._generatedId); + protected id = () => this._generatedId; // TODO(wagnermaciel): See if we want to change how we handle this since textContent is not // reactive. See https://github.com/angular/components/pull/30495#discussion_r1961260216. diff --git a/src/aria/tree/tree.ts b/src/aria/tree/tree.ts index 635810f95733..3d97551fad0a 100644 --- a/src/aria/tree/tree.ts +++ b/src/aria/tree/tree.ts @@ -91,9 +91,8 @@ export class Tree { /** A unique identifier for the tree. */ private readonly _generatedId = inject(_IdGenerator).getId('ng-tree-', true); - // TODO(wagnermaciel): https://github.com/angular/components/pull/30495#discussion_r1972601144. /** A unique identifier for the tree. */ - protected id = computed(() => this._generatedId); + protected id = () => this._generatedId; /** A reference to the parent combobox popup, if one exists. */ private readonly _popup = inject>(ComboboxPopup, {