Hello,
I’m encountering the following error when utilizing the Multi-Select Dropdown Component from the Vibe Design System.
I realize that this is error is thrown because when the Dropdown "Chips" are being rendered, they're always given the same id of "[object Object]":
Can anyone help me with resolving this? I believe this error is the reason onChange is not called when I remove a “chip” from the Dropdown…
For context, here is the code I’m using for the Dropdowns, they’re copied from the documentation:
let query = "query {teams (ids: team_id) { users {name id email} } }"
let res = (await monday.api(query)).data.teams[0].users;
for (let i =0; i < res.length; i++) {
users.push({ key: res[i].id, value: res[i], label: res[i].name})
}
...
const teamOptions = useMemo(() => users, []);
...
<Dropdown defaultValue={formState.team} options={teamOptions} multi multiline className="dropdown-stories-styles_with-chips" onChange={(e) => console.log(e)}/>
Thank you.