Skip to content

Commit 3e07b61

Browse files
fix: only autofocus when giphy is active (#1770)
* fix: only autofocus when giphy is active * test: fixed snapshot
1 parent 0671100 commit 3e07b61

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

package/src/components/AutoCompleteInput/AutoCompleteInput.tsx

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

390390
return (
391391
<TextInput
392-
autoFocus={true}
392+
autoFocus={giphyActive}
393393
maxLength={maxMessageLength}
394394
multiline
395395
onChangeText={(newText) => {

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ Array [
265265
}
266266
>
267267
<TextInput
268-
autoFocus={true}
268+
autoFocus={false}
269269
maxLength={5000}
270270
multiline={true}
271271
onBlur={[Function]}

0 commit comments

Comments
 (0)