We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 37a718f commit 3d30a8aCopy full SHA for 3d30a8a
package/src/components/Thread/Thread.tsx
@@ -76,7 +76,7 @@ const ThreadWithContext = (props: ThreadPropsWithContext) => {
76
additionalMessageInputProps,
77
additionalMessageListProps,
78
additionalMessageFlashListProps,
79
- autoFocus = true,
+ autoFocus = false,
80
closeThread,
81
closeThreadOnDismount = true,
82
disabled,
@@ -124,8 +124,9 @@ const ThreadWithContext = (props: ThreadPropsWithContext) => {
124
const additionalTextInputProps = useMemo(
125
() => ({
126
editable: !disabled,
127
+ autoFocus,
128
}),
- [disabled],
129
+ [disabled, autoFocus],
130
);
131
132
if (!thread?.id) {
0 commit comments