Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions src/aria/listbox/listbox.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,8 @@ export class Listbox<V> {
/** 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<V>>(ComboboxPopup, {
Expand Down Expand Up @@ -224,9 +223,8 @@ export class Option<V> {
/** 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.
Expand Down
3 changes: 1 addition & 2 deletions src/aria/tree/tree.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,9 +91,8 @@ export class Tree<V> {
/** 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<V>>(ComboboxPopup, {
Expand Down
Loading