From e62f5fd1ef53ad0f81a1fa39c322f33ba25be3dc Mon Sep 17 00:00:00 2001 From: Jared Scott Date: Wed, 4 Sep 2024 13:47:09 +0800 Subject: [PATCH] feat: #7073 Add missing focused context --- components/lib/dropdown/DropdownItem.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/components/lib/dropdown/DropdownItem.js b/components/lib/dropdown/DropdownItem.js index e630768e9c..33fa663e59 100644 --- a/components/lib/dropdown/DropdownItem.js +++ b/components/lib/dropdown/DropdownItem.js @@ -13,7 +13,8 @@ export const DropdownItem = React.memo((props) => { return ptm(key, { context: { selected, - disabled + disabled, + focused: index === focusedOptionIndex } }); };