Skip to content

Commit

Permalink
[pluto/select] - fixed issue with removing the wrong select item from…
Browse files Browse the repository at this point in the history
… Select.Multiple
  • Loading branch information
emilbon99 committed Aug 17, 2024
1 parent 85907ab commit 1f4915e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pluto/src/select/Multiple.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -327,8 +327,8 @@ const MultipleInput = <K extends Key, E extends Keyed<K>>({
grow
size="small"
>
{toArray(selectedKeys).map((k, i) => {
const e = selected[i];
{toArray(selectedKeys).map((k) => {
const e = selected.find((v) => v.key === k);
return renderTag({
key: k,
entryKey: k,
Expand Down

0 comments on commit 1f4915e

Please sign in to comment.