mui / mui-x

MUI X: Build complex and data-rich applications using a growing list of advanced React components, like the Data Grid, Date and Time Pickers, Charts, and more!
https://mui.com/x/
4.14k stars 1.29k forks source link

[pickers] Providing unknown props to Picker components don't spread them to the root element #13795

Open LukasTy opened 3 months ago

LukasTy commented 3 months ago

When trying to add describeConformance to DesktopDatePicker I noticed that any unknown props (i.e. data-testid) are not spread to the root element (TextField or Layout for Static variants).

We should mend this behavior on all Picker components.

Search keywords:

flaviendelangle commented 3 months ago

It should forward them :grimacing: We have to be careful though because we might forward some view props to the DOM...

In the meantime I agree that documented this limitation and showing how to use slots.fields would be nice