Skip to content
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

Open
khrulenko opened this issue Dec 20, 2024 · 0 comments
Open

[Autocomplete] Typization mistake in AutocompleteRenderGroupParams #44818

khrulenko opened this issue Dec 20, 2024 · 0 comments
Labels
bug 🐛 Something doesn't work status: waiting for maintainer These issues haven't been looked at yet by a maintainer

Comments

@khrulenko
Copy link

khrulenko commented Dec 20, 2024

Steps to reproduce

Steps:

  1. Reach params in renderGroup in Autocomplete
  2. Check the actual type of key (it's number)
  3. Compare the type of key with the type in AutocompleteRenderGroupParams (it's string)

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:

@khrulenko khrulenko added bug 🐛 Something doesn't work status: waiting for maintainer These issues haven't been looked at yet by a maintainer labels Dec 20, 2024
@michelengelen michelengelen transferred this issue from mui/mui-x Dec 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 Something doesn't work status: waiting for maintainer These issues haven't been looked at yet by a maintainer
Projects
None yet
Development

No branches or pull requests

1 participant