Skip to content

Commit

Permalink
adding additionalTextareaProps in EditMessageForm
Browse files Browse the repository at this point in the history
  • Loading branch information
vishalnarkhede committed Mar 26, 2020
1 parent 5346f54 commit a6719bb
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/components/EditMessageForm.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,10 @@ class EditMessageForm extends React.Component {
maxNumberOfFiles: PropTypes.number,
/** @see See [channel context](https://getstream.github.io/stream-chat-react/#channel) doc */
acceptedFiles: PropTypes.object,
/**
* Any additional attrubutes that you may want to add for underlying HTML textarea element.
*/
additionalTextareaProps: PropTypes.object,
};

static defaultProps = {
Expand Down Expand Up @@ -179,6 +183,7 @@ class EditMessageForm extends React.Component {
maxRows={this.props.maxRows}
onPaste={this.props.onPaste}
grow={this.props.grow}
additionalTextareaProps={this.props.additionalTextareaProps}
/>
<div className="str-chat__message-team-form-footer">
<div className="str-chat__edit-message-form-options">
Expand Down

0 comments on commit a6719bb

Please sign in to comment.