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

"React does not recognize the ownerState prop on a DOM element" from MUI Autocomplete 6.1.5 with custom listbox #44189

Open
joshkel opened this issue Oct 22, 2024 · 1 comment
Assignees
Labels
component: autocomplete This is the name of the generic UI component, not the React module!

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

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!
Projects
None yet
Development

No branches or pull requests

4 participants