Repository navigation
Command Group and Command group item highlight items with the same name #7694
Unanswered
Thomas-273
asked this question in
Q&A
Replies: 1 comment
|
try cmdk uses {items.map((item) => (
<CommandItem
key={item.id}
value={String(item.id)}
keywords={[item.name]}
onSelect={() => handleSelect(item.id)}
>
{item.name}
</CommandItem>
))}make sure the ids are unique across all groups. try moving between the duplicate names with the arrow keys. each should highlight separately |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Today i encounter this issue, still figuring out how to fix this. If anyone experienced the same and have the solution, please help me fix this.

the 2 items have same name and both are highlighted, even they have difference id
All reactions