Closed phongvudz closed 5 months ago
Any solutions for this?
i think map key by id why item selected by name when i key up key down not work when item duplicate name
What the fuck did I just read
can someone explain
OK I re-read it a few times. It seems like you have two items that have the same content, like
<>
<Command.Item>Apple</Command.Item>
<Command.Item>Apple</Command.Item>
</>
You should use the value
prop to differentiate them:
<>
<Command.Item value="apple-a">Apple</Command.Item>
<Command.Item value="apple-b">Apple</Command.Item>
</>
i think map key by id why item selected by name when i key up key down not work when item duplicate name