-
-
Notifications
You must be signed in to change notification settings - Fork 32.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Autocomplete] Typization mistake in AutocompleteRenderGroupParams #44818
Comments
Upon checking renderGroup in Autocomplete component, the key prop is of type string, also has an implicit conversion to string to be safe. |
Hi @khrulenko, thanks for reporting. I've opened this PR to make runtime and TS types to be in sync: #44862 |
This issue has been closed. If you have a similar problem but not exactly the same, please open a new issue. Note @khrulenko How did we do? Your experience with our support team matters to us. If you have a moment, please share your thoughts in this short Support Satisfaction survey. |
Steps to reproduce
Steps:
params
inrenderGroup
in Autocompletekey
(it'snumber
)key
with the type inAutocompleteRenderGroupParams
(it'sstring
)Current behavior
export interface AutocompleteRenderGroupParams {
key: string;
group: string;
children?: React.ReactNode;
}
Expected behavior
export interface AutocompleteRenderGroupParams {
key: number; ←←←
group: string;
children?: React.ReactNode;
}
Context
No response
Your environment
No response
Search keywords: Autocomplete AutocompleteRenderGroupParams
Search keywords:
The text was updated successfully, but these errors were encountered: