Skip to content

Conversation

@crisbeto
Copy link
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
Member Author

This PR was merged into the repository. The changes were merged into the following branches:

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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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