Skip to content

[Autocomplete][material] wrong type - slotProps: paper #38870

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

Closed
2 tasks done
vadimka123 opened this issue Sep 8, 2023 · 4 comments
Closed
2 tasks done

[Autocomplete][material] wrong type - slotProps: paper #38870

vadimka123 opened this issue Sep 8, 2023 · 4 comments
Labels
component: autocomplete This is the name of the generic UI component, not the React module! duplicate This issue or pull request already exists package: material-ui Specific to @mui/material

Comments

@vadimka123
Copy link
Contributor

Duplicates

  • I have searched the existing issues

Latest version

  • I have tested the latest version

Steps to reproduce 🕹

Steps:

  1. Specify partially slotProps -> paper

Current behavior 😯

Typescript failing

Expected behavior 🤔

No any errors

Context 🔦

No response

Your environment 🌎

System:
OS: macOS 13.4.1
Binaries:
Node: 18.12.1 - /usr/local/bin/node
Yarn: 1.22.19 - /usr/local/bin/yarn
npm: 8.19.2 - /usr/local/bin/npm
Browsers:
Chrome: 116.0.5845.179
Edge: Not Found
Safari: 16.5.2
npmPackages:
@emotion/react: 11.11.1 => 11.11.1
@emotion/styled: 11.11.0 => 11.11.0
@mui/base: 5.0.0-beta.14 => 5.0.0-beta.14
@mui/core-downloads-tracker: 5.14.8
@mui/material: 5.14.8 => 5.14.8
@mui/private-theming: 5.14.8
@mui/styled-engine: 5.14.8
@mui/system: 5.14.8 => 5.14.8
@mui/types: 7.2.4
@mui/utils: 5.14.8
@types/react: 18.2.21 => 18.2.21
react: 18.2.0 => 18.2.0
react-dom: 18.2.0 => 18.2.0
typescript: 5.1.6 => 5.1.6

@vadimka123 vadimka123 added the status: waiting for maintainer These issues haven't been looked at yet by a maintainer label Sep 8, 2023
@DiegoAndai DiegoAndai self-assigned this Sep 8, 2023
@DiegoAndai DiegoAndai changed the title [Autocomplete] wrong type - slotProps: paper [Autocomplete][material] wrong type - slotProps: paper Sep 8, 2023
@DiegoAndai DiegoAndai added component: autocomplete This is the name of the generic UI component, not the React module! package: material-ui Specific to @mui/material labels Sep 8, 2023
@DiegoAndai
Copy link
Member

Hey @vadimka123. Could you provide a minimal reproduction test case with the latest version. This would help a lot 👷. A live example would be perfect. This codesandbox.io template may be a good starting point. Thank you!

I'm not getting the error in this example: https://codesandbox.io/s/38870-ts-yy9n7x

@DiegoAndai DiegoAndai added status: waiting for author Issue with insufficient information and removed status: waiting for maintainer These issues haven't been looked at yet by a maintainer labels Sep 8, 2023
@github-actions
Copy link

Since the issue is missing key information and has been inactive for 7 days, it has been automatically closed. If you wish to see the issue reopened, please provide the missing information.

@vadimka123
Copy link
Contributor Author

vadimka123 commented Sep 25, 2023

@DiegoAndai , https://codesandbox.io/s/38870-ts-forked-5d9qsp
Usage as slotProps.paper (Type '{ "data-automation-id": string; }' is not assignable to type 'PaperProps'.) vs Paper component (all good)

@github-actions github-actions bot removed the status: waiting for author Issue with insufficient information label Sep 25, 2023
@github-actions github-actions bot reopened this Sep 25, 2023
@ZeeshanTamboli
Copy link
Member

ZeeshanTamboli commented Oct 7, 2023

@github-actions github-actions bot added the duplicate This issue or pull request already exists label Oct 7, 2023
@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Oct 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: autocomplete This is the name of the generic UI component, not the React module! duplicate This issue or pull request already exists package: material-ui Specific to @mui/material
Projects
None yet
Development

No branches or pull requests

3 participants