Skip to content

Commit 870bff9

Browse files
author
Bogdan Tsechoev
committed
Assistant: Fixed text field autofocus
1 parent 2a45ae3 commit 870bff9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ui/packages/platform/src/pages/Bot/Command/Command.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ export const Command = React.memo((props: Props) => {
194194
if (!inputRef.current) return
195195
if (window.innerWidth > theme.breakpoints.values.md) inputRef.current.focus()
196196
if (!location.state?.skipReloading) setValue('')
197-
}, [threadId]);
197+
}, [threadId, loading]);
198198

199199
return (
200200
<div className={classes.root}>

0 commit comments

Comments
 (0)