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

The duplicate attribute is case insensitive #1416

Open
3 tasks done
windowdotonload opened this issue Nov 28, 2024 · 2 comments
Open
3 tasks done

The duplicate attribute is case insensitive #1416

windowdotonload opened this issue Nov 28, 2024 · 2 comments

Comments

@windowdotonload
Copy link

windowdotonload commented Nov 28, 2024

  • I am running the latest version
  • I checked the documentation and found no answer (Nothing in the docu for 'loadOriginalValues' gives an clue that HTML Tag like Text gets removed the input should accept like in the running demo)
  • I checked to make sure that this issue has not already been filed

expected

The duplicate property can be a Boolean or an Object

For example:

new Tagify(input, {
   duplicates: {
      disallow: true,
      caseSensitive: true
   }
})

It is case-sensitive when detecting duplicates of tags

@yairEO
Copy link
Owner

yairEO commented Jan 10, 2025

is this a suggestion?

@yairEO
Copy link
Owner

yairEO commented Jan 10, 2025

You can currently implement your own custom validation without setting the duplicates setting by using the validate setting:

If the pattern setting does not meet your needs, use this function, which receives tag data object as an argument and should return true if validation passed or false/string if not. A string may be returned as the reason for the validation failure.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants