From c1f915380fa88123128de3158b37a89f3ffd5b90 Mon Sep 17 00:00:00 2001 From: Jared Scott Date: Wed, 4 Sep 2024 19:54:52 +0800 Subject: [PATCH] feat: #7073 Add missing focused context (#7107) --- 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 } }); };