Skip to content

Commit

Permalink
contenteditable: remove warning about unknown property onContentChange (
Browse files Browse the repository at this point in the history
  • Loading branch information
jprjr authored Jul 11, 2023
1 parent 3f48870 commit 056bd9f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions web/components/chat/ChatTextField/ContentEditable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 056bd9f

Please sign in to comment.