Pārlūkot izejas kodu

ref(chat): removed unused getChatInputRef callback for input

master
Leonard Kim 6 gadus atpakaļ
vecāks
revīzija
f1546008f9
1 mainītis faili ar 0 papildinājumiem un 9 dzēšanām
  1. 0
    9
      react/features/chat/components/web/ChatInput.js

+ 0
- 9
react/features/chat/components/web/ChatInput.js Parādīt failu

21
      */
21
      */
22
     dispatch: Dispatch<any>,
22
     dispatch: Dispatch<any>,
23
 
23
 
24
-    /**
25
-     * Optional callback to get a reference to the chat input element.
26
-     */
27
-    getChatInputRef?: Function,
28
-
29
     /**
24
     /**
30
      * Invoked to obtain translated strings.
25
      * Invoked to obtain translated strings.
31
      */
26
      */
223
      */
218
      */
224
     _setTextAreaRef(textAreaElement: ?HTMLTextAreaElement) {
219
     _setTextAreaRef(textAreaElement: ?HTMLTextAreaElement) {
225
         this._textArea = textAreaElement;
220
         this._textArea = textAreaElement;
226
-
227
-        if (this.props.getChatInputRef) {
228
-            this.props.getChatInputRef(textAreaElement);
229
-        }
230
     }
221
     }
231
 }
222
 }
232
 
223
 

Notiek ielāde…
Atcelt
Saglabāt