Skip to content

Commit 60f8194

Browse files
authored
Merge pull request #1743 from GetStream/fix/autofocus-on-input
fix: auto focus on input box on mount and command selection
2 parents 7e5e874 + 1a57763 commit 60f8194

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

package/src/components/AutoCompleteInput/AutoCompleteInput.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -389,6 +389,7 @@ const AutoCompleteInputWithContext = <
389389

390390
return (
391391
<TextInput
392+
autoFocus={true}
392393
maxLength={maxMessageLength}
393394
multiline
394395
onChangeText={(newText) => {

package/src/components/MessageInput/__tests__/__snapshots__/MessageInput.test.js.snap

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -265,6 +265,7 @@ Array [
265265
}
266266
>
267267
<TextInput
268+
autoFocus={true}
268269
maxLength={5000}
269270
multiline={true}
270271
onBlur={[Function]}

0 commit comments

Comments
 (0)