ref(chat): removed unused getChatInputRef callback for input
This commit is contained in:
parent
d8df7fde84
commit
f1546008f9
|
@ -21,11 +21,6 @@ type Props = {
|
||||||
*/
|
*/
|
||||||
dispatch: Dispatch<any>,
|
dispatch: Dispatch<any>,
|
||||||
|
|
||||||
/**
|
|
||||||
* Optional callback to get a reference to the chat input element.
|
|
||||||
*/
|
|
||||||
getChatInputRef?: Function,
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Invoked to obtain translated strings.
|
* Invoked to obtain translated strings.
|
||||||
*/
|
*/
|
||||||
|
@ -223,10 +218,6 @@ class ChatInput extends Component<Props, State> {
|
||||||
*/
|
*/
|
||||||
_setTextAreaRef(textAreaElement: ?HTMLTextAreaElement) {
|
_setTextAreaRef(textAreaElement: ?HTMLTextAreaElement) {
|
||||||
this._textArea = textAreaElement;
|
this._textArea = textAreaElement;
|
||||||
|
|
||||||
if (this.props.getChatInputRef) {
|
|
||||||
this.props.getChatInputRef(textAreaElement);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue