Skip to content

Conversation

@thomasdegry
Copy link

Fixes #20 and #21 to ensure that tags that don't get added if they mismatch with the pattern attribute.

This is just what @mikemaccana had but does not rely on include to ensure IE support. Got rid of the tilde trick and just check if indexOf is equal or greater than 0.

Also added some styles to flash the input box to indicate that the content is invalid.

Copy link
Owner

@developit developit left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

@thomasdegry
Copy link
Author

Awesome; anything else that needs to happen before we merge?

return false;
}

// Don't add if iti's invalid (eg, for pattern=)
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Found a typo, "iti's" should be "it's"

@developit
Copy link
Owner

I think we're good, just didn't want to do it on a plane haha

@thomasdegry
Copy link
Author

Awesome! Understandable 😄
I fixed the typo that @zaygraveyard pointed out as well, thank you for that! 👍

@tumpio
Copy link

tumpio commented Jun 2, 2017

Can we make a release for this?

@tumpio
Copy link

tumpio commented Jun 2, 2017

hmm there seems to be quite big fork in https://github.com/pirxpilot/tags-input

@vsg24
Copy link

vsg24 commented Jun 27, 2017

@developit WTH... just do it already

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 this pull request may close these issues.

5 participants