From 1a957fcb3c441abfab8c4b489020d47dba1fafc6 Mon Sep 17 00:00:00 2001 From: Shubham Saurabh Date: Thu, 11 Apr 2024 02:50:58 +0530 Subject: [PATCH] Fix #6316: fixed issue on selecting option by key event when using optionValue prop --- components/lib/dropdown/Dropdown.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/lib/dropdown/Dropdown.js b/components/lib/dropdown/Dropdown.js index be1ffa0fd1..e29ae73633 100644 --- a/components/lib/dropdown/Dropdown.js +++ b/components/lib/dropdown/Dropdown.js @@ -156,11 +156,11 @@ export const Dropdown = React.memo( }; const onOptionSelect = (event, option, isHide = true) => { - const value = getOptionValue(option); + // const value = getOptionValue(option); selectItem({ originalEvent: event, - option: value + option: option }); isHide && hide(true);