Skip to content
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

Add flag to suppress warning closes 41669 #42095

Closed

Conversation

charlesinto2
Copy link

@charlesinto2 charlesinto2 commented May 2, 2024

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
Copy link

mui-bot commented May 2, 2024

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 🚫 dangerJS against 6d22a6b

@oliviertassinari
Copy link
Member

Duplicate of #41671?

@zannager zannager added the component: autocomplete This is the name of the generic UI component, not the React module! label May 3, 2024
@zannager zannager requested a review from mj12albert May 3, 2024 16:16
@mj12albert
Copy link
Member

Duplicate of #41671?

@charlesinto2 Thanks for working on this ~ would you be interested in contributing a test to #41671 instead?

@mj12albert mj12albert self-assigned this May 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: autocomplete This is the name of the generic UI component, not the React module!
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

7 participants