Duplicates
Latest version
Current behavior 😯
As seen here: https://codesandbox.io/s/checkboxes-demo-material-ui-forked-61wy40, adding a data-* prop throws an error:
Type '{ "data-cy": string; }' is not assignable to type 'InputHTMLAttributes'.
Expected behavior 🤔
data-* props should be allowed, like in the TextField component.
Steps to reproduce 🕹
https://codesandbox.io/s/checkboxes-demo-material-ui-forked-61wy40
Context 🔦
I want to add a data-* prop for testing.
Your environment 🌎
Latest TS, latest MUI
Duplicates
Latest version
Current behavior 😯
As seen here: https://codesandbox.io/s/checkboxes-demo-material-ui-forked-61wy40, adding a
data-*prop throws an error:Expected behavior 🤔
data-*props should be allowed, like in the TextField component.Steps to reproduce 🕹
https://codesandbox.io/s/checkboxes-demo-material-ui-forked-61wy40
Context 🔦
I want to add a
data-*prop for testing.Your environment 🌎
Latest TS, latest MUI