mirror of
https://github.com/webstudio-is/webstudio.git
synced 2026-11-07 20:44:05 +09:00
fix(combobox): Fix a bug when highlighted item would be wrong one
This commit is contained in:
1 parent
ea0e2e3c7b
commit
e574bcd18c
1 file changed
+1
-1
@@ -228,7 +228,7 @@ export const Combobox = <Item extends BaseItem>({
|
||||
},
|
||||
onHighlightedIndexChange({ highlightedIndex }) {
|
||||
if (highlightedIndex !== undefined) {
|
||||
onItemHighlight?.(items[highlightedIndex]);
|
||||
onItemHighlight?.(foundItems[highlightedIndex]);
|
||||
}
|
||||
},
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user