Skip to content

Conversation

@adolgachev
Copy link
Contributor

No description provided.

@angular-robot angular-robot bot added the detected: feature PR contains a feature commit label Nov 2, 2025
@adolgachev adolgachev marked this pull request as ready for review November 2, 2025 23:00
@adolgachev adolgachev requested a review from a team as a code owner November 2, 2025 23:00
@adolgachev adolgachev requested review from ok7sai and wagnermaciel and removed request for a team November 2, 2025 23:00
}

/** Opens the combobox. */
open(nav?: {first?: boolean; last?: boolean; selected?: boolean}) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should discuss with the team how these navigation options are surfaced to developers. When it was an internal impl detail, it was fine to just call open({first: true}), etc. But now that it is part of the public api, it would be good to see if folks think there is a more intuitive way to expose this

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's fair. I will add that the context-menu example appears to call _pattern.first() because there was no option to open and navigate to first, so at least providing it in the open (or simply making the default first: true) will remove the need to expose navigation separately. But again, just having it clearly navigate to first would possibly be enough.

}

/** Selects an item in the combobox popup. */
select(opts: {item?: V; commit?: boolean; close?: boolean} = {}) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We shouldn't expose item, or close as options here. Not sure what we should do about commit, but will likely need to go a different route than surfacing it as a option this way

@adolgachev adolgachev added action: review The PR is still awaiting reviews from at least one requested reviewer target: rc This PR is targeted for the next release-candidate merge: preserve commits When the PR is merged, a rebase and merge should be performed labels Nov 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

action: review The PR is still awaiting reviews from at least one requested reviewer detected: feature PR contains a feature commit merge: preserve commits When the PR is merged, a rebase and merge should be performed target: rc This PR is targeted for the next release-candidate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants