-
-
Notifications
You must be signed in to change notification settings - Fork 32.4k
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
xxxProps type error with data-* attribute #18874
Comments
I have no idea where this error originates from. Any idea? It looks like TypeScript gives up: https://codesandbox.io/s/material-demo-h11wl. |
No sorry I don't really have any idea, I'm new to using TS :| But I was assuming that
|
@oliviertassinari This looks relevant: microsoft/TypeScript#28960 |
@oscar-b Oh great, so it's somewhat a limitation of TypeScript? |
That's the way I interpret it, at least :/ |
Closing this in favor of microsoft/TypeScript#28960. Please upvote and subscribe to that issue instead if you'd like to see this fixed. |
Current Behavior 😯
When specifying
PaperProps
there's a type error.Expected Behavior 🤔
There should be no type error.
Steps to Reproduce 🕹
https://codesandbox.io/s/material-demo-h11wl
demo.tsx, row 55:
Steps:
Error:
Context 🔦
Cypress needs selectors for targeting elements, and using a
data-id
ordata-testid
attribute is the preferred solution that doesn't rely on styling selectors which might change over time.Your Environment 🌎
The text was updated successfully, but these errors were encountered: