mui / material-ui

Material UI: Ready-to-use foundational React components, free forever. It includes Material UI, which implements Google's Material Design.
https://mui.com/material-ui/
MIT License
91.86k stars 31.57k forks source link

Add flag to suppress warning closes 41669 #42095

Open charlesinto2 opened 2 weeks ago

charlesinto2 commented 2 weeks ago

In React, when you add the contentEditable, you get a warning in the console that warns you about the problems you might encounter using that prop. To remove that warning you have to add another prop: suppressContentEditableWarning.

To remove the warning message add suppressTextareaWarning flag to the component.

<Autocomplete
  options={yourOptions}
  renderInput={(params) => <TextField {...params} multiline />}
  suppressTextareaWarning
/>

41669

mui-bot commented 2 weeks ago

Netlify deploy preview

https://deploy-preview-42095--material-ui.netlify.app/

Bundle size report

Details of bundle changes (Toolpad) Details of bundle changes

Generated by :no_entry_sign: dangerJS against 6d22a6b9e89ad204d42a63fc2f58bb2a30c14377

oliviertassinari commented 2 weeks ago

Duplicate of #41671?

mj12albert commented 4 days ago

Duplicate of https://github.com/mui/material-ui/pull/41671?

@charlesinto2 Thanks for working on this ~ would you be interested in contributing a test to https://github.com/mui/material-ui/pull/41671 instead?