From 3b7fa0620c2cc2b1a1fe41981724610b32e90879 Mon Sep 17 00:00:00 2001 From: Pujan Date: Thu, 28 Dec 2023 02:44:33 +0530 Subject: [PATCH] used nativeID for selection list --- src/components/SelectionList/BaseListItem.js | 2 +- src/components/SelectionList/BaseSelectionList.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/SelectionList/BaseListItem.js b/src/components/SelectionList/BaseListItem.js index ac679f32d103..443b930d5e7a 100644 --- a/src/components/SelectionList/BaseListItem.js +++ b/src/components/SelectionList/BaseListItem.js @@ -49,7 +49,7 @@ function BaseListItem({ hoverStyle={styles.hoveredComponentBG} dataSet={{[CONST.SELECTION_SCRAPER_HIDDEN_ELEMENT]: true}} onMouseDown={shouldPreventDefaultFocusOnSelectRow ? (e) => e.preventDefault() : undefined} - testID={keyForList} + nativeID={keyForList} > { - const focusedItemKey = lodashGet(e, ['target', 'attributes', 'data-testid', 'value']); + const focusedItemKey = lodashGet(e, ['target', 'attributes', 'id', 'value']); const focusedOption = focusedItemKey ? _.find(flattenedSections.allOptions, (option) => option.keyForList === focusedItemKey) : flattenedSections.allOptions[focusedIndex]; if (!focusedOption || focusedOption.isDisabled) {