You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Maybe something like this? If duplicates aren't allowed, the behavior will be identical. If duplicates are allowed, it will only remove the desired element.
Dependencies check up
What version of @mantine/* packages do you have in package.json?
^7.6.2
What package has an issue?
@mantine/core
What framework do you use?
Other, I will specify in the bug description
In which browsers you can reproduce the issue?
All
Describe the bug
I am using mantine through dash-mantine-components, but have confirmed that this issue also appears on the mantine website.
For example, given a tags input containing
items=['a','b','a']
, clicking delete onitems[2]
also deletesitems[0]
.If possible, include a link to a codesandbox with a minimal reproduction
https://mantine.dev/core/tags-input/#allow-duplicates
Possible fix
Clicking delete on a tag should delete only that tag.
Possibly here
mantine/packages/@mantine/core/src/components/TagsInput/TagsInput.tsx
Line 339 in 00a94ce
Maybe something like this? If duplicates aren't allowed, the behavior will be identical. If duplicates are allowed, it will only remove the desired element.
Self-service
The text was updated successfully, but these errors were encountered: