You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The input cdkOptionTypeaheadLabel of CdkOption should allow undefined as an input type
Use Case
I am using the cdkListbox internaly in a library. For this list, we allow users to provide an optional typeahead label.
When building the option I would like to write it like this:
crisbeto
added
P4
A relatively minor issue that is not relevant to core functions
area: cdk/listbox
and removed
feature
This issue represents a new feature or feature request rather than a bug or bug fix
needs triage
This issue needs to be triaged by the team
labels
Jan 27, 2024
Feature Description
The input
cdkOptionTypeaheadLabel
ofCdkOption
should allowundefined
as an input typeUse Case
I am using the
cdkListbox
internaly in a library. For this list, we allow users to provide an optional typeahead label.When building the option I would like to write it like this:
However this is a compiler error. When adding an
$any()
cast everything works fine.The text was updated successfully, but these errors were encountered: