contenteditable: remove warning about unknown property onContentChange (#3161)

This commit is contained in:
John Regan
2023-07-11 02:02:07 -04:00
committed by GitHub
parent 3f4887020d
commit 056bd9f152

View File

@ -53,6 +53,7 @@ export default class ContentEditable extends React.Component<ContentEditableProp
const { tagName, html, ...newProps } = this.props;
delete newProps.onRootRef;
delete newProps.onContentChange;
return React.createElement(tagName || 'div', {
...newProps,