Skip to content

Commit 33c36d7

Browse files
lucassaidonmotion
authored andcommitted
fixed onChangeText dependencies
1 parent c8406cf commit 33c36d7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ export const AutocompleteDropdown = memo(
215215
const onChangeText = useCallback(text => {
216216
setSearchText(text)
217217
debouncedEvent(text)
218-
}, [])
218+
}, [debouncedEvent])
219219

220220
const onChevronPress = useCallback(() => {
221221
toggle()
@@ -270,7 +270,7 @@ export const AutocompleteDropdown = memo(
270270
{/* it's necessary use onLayout here for Androd (bug?) */}
271271
<View
272272
ref={containerRef}
273-
onLayout={_ => {}}
273+
onLayout={_ => { }}
274274
style={[styles.inputContainerStyle, props.inputContainerStyle]}>
275275
<InputComponent
276276
ref={inputRef}

0 commit comments

Comments
 (0)