fix(multiple): resolve forward ref errors by crisbeto · Pull Request #32413 · angular/components · GitHub
Skip to content

fix(multiple): resolve forward ref errors - #32413

Merged
crisbeto merged 1 commit into
angular:mainfrom
crisbeto:32408/forward-refs
Nov 26, 2025
Merged

fix(multiple): resolve forward ref errors#32413
crisbeto merged 1 commit into
angular:mainfrom
crisbeto:32408/forward-refs

Conversation

@crisbeto

Copy link
Copy Markdown
Member

The combobox and listbox had some cases where they were referencing classes defined further down in the file in their queries.

When the references are extracted into Angular's metadata, this can cause an error at runtime because the reference becomes eager.

These changes wrap the problematic cases in forwardRef to resolve the issues.

Fixes #32408.

The combobox and listbox had some cases where they were referencing classes defined further down in the file in their queries.

When the references are extracted into Angular's metadata, this can cause an error at runtime because the reference becomes eager.

These changes wrap the problematic cases in `forwardRef` to resolve the issues.

Fixes angular#32408.
@crisbeto crisbeto added the target: patch This PR is targeted for the next patch release label Nov 26, 2025
@crisbeto
crisbeto requested a review from a team as a code owner November 26, 2025 09:23
@crisbeto
crisbeto requested review from andrewseguin, ok7sai and wagnermaciel and removed request for a team November 26, 2025 09:23
@crisbeto crisbeto added the action: merge The PR is ready for merge by the caretaker label Nov 26, 2025
@crisbeto
crisbeto merged commit 9fff253 into angular:main Nov 26, 2025
24 of 26 checks passed
@crisbeto

Copy link
Copy Markdown
Member Author

crisbeto added a commit that referenced this pull request Nov 26, 2025
The combobox and listbox had some cases where they were referencing classes defined further down in the file in their queries.

When the references are extracted into Angular's metadata, this can cause an error at runtime because the reference becomes eager.

These changes wrap the problematic cases in `forwardRef` to resolve the issues.

Fixes #32408.

(cherry picked from commit 9fff253)
@angular-automatic-lock-bot

Copy link
Copy Markdown

@angular-automatic-lock-bot angular-automatic-lock-bot Bot locked and limited conversation to collaborators Dec 27, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

action: merge The PR is ready for merge by the caretaker target: patch This PR is targeted for the next patch release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug(aria/listbox): Error in tests when using Listbox as a HostDirective (Cannot access 'ComboboxPopup' before initialization)

2 participants