Tracks send state for edited messages
This commit is contained in:
parent
860bec5534
commit
b2319b43d6
8 changed files with 391 additions and 55 deletions
|
@ -434,12 +434,14 @@ export function CompositionArea({
|
|||
useEffect(() => {
|
||||
if (inputApiRef.current) {
|
||||
inputApiRef.current.focus();
|
||||
setHasFocus(true);
|
||||
}
|
||||
}, []);
|
||||
// Focus input whenever explicitly requested
|
||||
useEffect(() => {
|
||||
if (focusCounter !== previousFocusCounter && inputApiRef.current) {
|
||||
inputApiRef.current.focus();
|
||||
setHasFocus(true);
|
||||
}
|
||||
}, [inputApiRef, focusCounter, previousFocusCounter]);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue