[Dev] Composer: Fix exception
This commit is contained in:
parent
a29e6c07da
commit
0bcb12d006
@ -132,6 +132,10 @@ const MessageInput: FC<OwnProps & StateProps> = ({
|
|||||||
const chatIdRef = useRef(chatId);
|
const chatIdRef = useRef(chatId);
|
||||||
chatIdRef.current = chatId;
|
chatIdRef.current = chatId;
|
||||||
const focusInput = useCallback(() => {
|
const focusInput = useCallback(() => {
|
||||||
|
if (!inputRef.current) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (isHeavyAnimating()) {
|
if (isHeavyAnimating()) {
|
||||||
setTimeout(focusInput, FOCUS_DELAY_MS);
|
setTimeout(focusInput, FOCUS_DELAY_MS);
|
||||||
return;
|
return;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user