Skip to content

Commit 2957ec7

Browse files
committed
Updated SelectionList onSelectRow's debounce to trailing edge if shouldDebounceRowSelect = true
1 parent 0b4812d commit 2957ec7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/SelectionList/BaseSelectionList.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ function BaseSelectionList<TItem extends ListItem>(
277277
}, [onChangeText]);
278278

279279
// eslint-disable-next-line react-hooks/exhaustive-deps
280-
const debouncedOnSelectRow = useCallback(lodashDebounce(onSelectRow, 1000, {leading: true}), [onSelectRow]);
280+
const debouncedOnSelectRow = useCallback(lodashDebounce(onSelectRow, 200), [onSelectRow]);
281281

282282
/**
283283
* Logic to run when a row is selected, either with click/press or keyboard hotkeys.

0 commit comments

Comments
 (0)