material-ui icon indicating copy to clipboard operation
material-ui copied to clipboard

Add flag to suppress warning closes 41669

Open charlesinto2 opened this issue 9 months ago • 3 comments

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

charlesinto2 avatar May 02 '24 15:05 charlesinto2

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

mui-bot avatar May 02 '24 15:05 mui-bot

Duplicate of #41671?

oliviertassinari avatar May 02 '24 18:05 oliviertassinari

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?

mj12albert avatar May 14 '24 10:05 mj12albert