Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Duplicated item does not appear in dropdown even though duplicates is set to true when whitelisting a list of strings #1284

Closed
3 tasks done
nop33 opened this issue Jan 23, 2024 · 1 comment

Comments

@nop33
Copy link

nop33 commented Jan 23, 2024

Prerequisites

  • I am running the latest version
  • I checked the documentation and found no answer
  • I checked to make sure that this issue has not already been filed

💥 Demo Page

https://codesandbox.io/p/sandbox/tagify-react-issue-template-forked-gsh23y

Explanation

  • What is the expected behavior?

Given the following settings, I would expect that duplicates are allowed:

<Tags
  whitelist={["a", "b", "c"]}
  settings={{
    duplicates: true,
    dropdown: {
      enabled: 1,
    }
  }}
/>
  • What is happening instead?

When I type "a" for the second time, the dropdown does not show up

  • What error message are you getting?

The item "a" is not included in the dropdown

nop33 added a commit to nop33/tagify that referenced this issue Jan 23, 2024
@yairEO
Copy link
Owner

yairEO commented Jan 23, 2024

See the setting includeSelectedTags

https://github.com/yairEO/tagify#settings

See discussion here: #1098

@yairEO yairEO closed this as completed Jan 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants