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

Support react19 #374

Open
Holybasil opened this issue Jan 26, 2025 · 0 comments
Open

Support react19 #374

Holybasil opened this issue Jan 26, 2025 · 0 comments
Assignees
Labels
React status: waiting for maintainer These issues haven't been looked at yet by a maintainer

Comments

@Holybasil
Copy link

Holybasil commented Jan 26, 2025

Steps to reproduce

import Container from "@mui/material-pigment-css/Container"

<Container sx={{ position: "relative", width: "100%" }} ref={sectionRef}></Container>

Current behavior

ts error msg
Type '{ children: Element[]; sx: { position: "relative"; width: string; }; ref: RefObject<HTMLDivElement | null>; }' is not assignable to type 'IntrinsicAttributes & ContainerBaseProps & DetailsHTMLAttributes'.
Property 'ref' does not exist on type 'IntrinsicAttributes & ContainerBaseProps & DetailsHTMLAttributes'

Expected behavior

Improvements in React 19
ref-as-a-prop

ref should in PolymorphicComponentProps

Context

No response

Your environment

No response

Search keywords: react19

@Holybasil Holybasil added the status: waiting for maintainer These issues haven't been looked at yet by a maintainer label Jan 26, 2025
@zannager zannager added the React label Jan 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
React status: waiting for maintainer These issues haven't been looked at yet by a maintainer
Projects
None yet
Development

No branches or pull requests

3 participants