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] "React does not recognize the ownerState prop on a DOM element" from MUI Autocomplete 6.1.5 with custom listbox #44189

Closed
joshkel opened this issue Oct 22, 2024 · 5 comments · Fixed by #44382
Assignees
Labels
bug 🐛 Something doesn't work component: autocomplete This is the name of the generic UI component, not the React module! regression A bug, but worse

Comments

@joshkel
Copy link
Contributor

joshkel commented Oct 22, 2024

Steps to reproduce

Link to live example: https://codesandbox.io/embed/9gmr38?module=/src/Demo.tsx&fontsize=12

Steps:

  1. Open the "Virtualization" Autocomplete demo.
  2. Click to open the drop-down.

Current behavior

Console warning:

Warning: React does not recognize the ownerState prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase ownerstate instead. If you accidentally passed it from a parent component, remove it from the DOM element.

Expected behavior

No console warning.

Context

This issue is new in 6.1.5. I believe it's the result of #43994.

Your environment

npx @mui/envinfo

  System:
    OS: macOS 15.0.1
  Binaries:
    Node: 18.20.2 - ~/.nvm/versions/node/v18.20.2/bin/node
    npm: 10.5.0 - ~/.nvm/versions/node/v18.20.2/bin/npm
    pnpm: Not Found
  Browsers:
    Chrome: 129.0.6668.101
    Edge: 130.0.2849.46
    Safari: 18.0.1
  npmPackages:
    @emotion/react:  11.13.3 
    @emotion/styled:  11.13.0 
    @mui/base:  5.0.0-beta.60 
    @mui/core-downloads-tracker:  6.1.5 
    @mui/icons-material:  6.1.5 
    @mui/lab:  6.0.0-beta.13 
    @mui/material:  6.1.5 
    @mui/private-theming:  6.1.5 
    @mui/styled-engine:  6.1.5 
    @mui/system:  6.1.5 
    @mui/types:  7.2.18 
    @mui/utils:  6.1.5 
    @mui/x-date-pickers:  7.21.0 
    @mui/x-internals:  7.21.0 
    @mui/x-tree-view:  7.21.0 
    @types/react: ^18.3.11 => 18.3.11 
    react: ^18.3.1 => 18.3.1 
    react-dom: ^18.3.1 => 18.3.1 
    typescript: ^5.6.3 => 5.6.3 

Search keywords: "React does not recognize the ownerState prop on a DOM element", autocomplete listbox

@joshkel joshkel added the status: waiting for maintainer These issues haven't been looked at yet by a maintainer label Oct 22, 2024
@zannager zannager added the component: autocomplete This is the name of the generic UI component, not the React module! label Oct 23, 2024
@mnajdova mnajdova assigned sai6855 and unassigned DiegoAndai Oct 25, 2024
@sai6855 sai6855 removed the status: waiting for maintainer These issues haven't been looked at yet by a maintainer label Nov 1, 2024
@sai6855
Copy link
Contributor

sai6855 commented Nov 1, 2024

Looking into it

@sai6855
Copy link
Contributor

sai6855 commented Nov 10, 2024

Found the issue, will open PR tomorrow

@DiegoAndai
Copy link
Member

@sai6855 I think this might be fixed in #44382, can you confirm? What's the root cause you found?

@DiegoAndai DiegoAndai self-assigned this Nov 11, 2024
@sai6855
Copy link
Contributor

sai6855 commented Nov 12, 2024

@DiegoAndai yes #44382 will fix this issue. I don't see ownerState leaking anymore in PR preview

Copy link

This issue has been closed. If you have a similar problem but not exactly the same, please open a new issue.
Now, if you have additional information related to this issue or things that could help future readers, feel free to leave a comment.

Note

@joshkel 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.

@oliviertassinari oliviertassinari added bug 🐛 Something doesn't work regression A bug, but worse labels Nov 15, 2024
@oliviertassinari oliviertassinari changed the title "React does not recognize the ownerState prop on a DOM element" from MUI Autocomplete 6.1.5 with custom listbox [Autocomplete] "React does not recognize the ownerState prop on a DOM element" from MUI Autocomplete 6.1.5 with custom listbox Nov 15, 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 component: autocomplete This is the name of the generic UI component, not the React module! regression A bug, but worse
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants