Skip to content

Commit 8c5f325

Browse files
authored
Merge pull request #44360 from huzaifa-99/24074-fix-double-click-multi-navigation
Updated SelectionList `onSelectRow` debounce to trailing edge if `shouldDebounceRowSelect = true`
2 parents ec443c9 + 2957ec7 commit 8c5f325

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)