Giter Club home page Giter Club logo

Comments (3)

ZeeshanTamboli avatar ZeeshanTamboli commented on May 2, 2024

I believe it's a bug. As mentioned in the documentation, it shouldn't pass the sx prop to the DOM. I think this occurs since styled-components v6 where shouldForwardProp is no longer provided by default - https://styled-components.com/docs/faqs#shouldforwardprop-is-no-longer-provided-by-default. However, I'm not entirely certain, so I won't label it as a bug just yet.

from material-ui.

brijeshb42 avatar brijeshb42 commented on May 2, 2024

@Nico142 Have you tried with the latest v6 of @mui/styled-engine-sc ?

from material-ui.

Nico142 avatar Nico142 commented on May 2, 2024

Hi @brijeshb42,

I tried the 6.0.0-alpha.19 version of @mui/styled-engine-sc (with @mui/material & @mui/styles in version 6.0.0-alpha.0) but still get the same result.

@ZeeshanTamboli: yes, thats correct. The error occurred with the styled-components prop forwarding change. My current workaround is to use the <StyleSheetManager shouldForwardProp={...}> to filter out the sx manually, but I wanted to make sure if this is something @mui should take care of.

from material-ui.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.