tags-input icon indicating copy to clipboard operation
tags-input copied to clipboard

Make sure tags that mismatch pattern are not added

Open thomasdegry opened this issue 8 years ago • 6 comments

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.

thomasdegry avatar May 19 '17 13:05 thomasdegry

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

thomasdegry avatar May 21 '17 10:05 thomasdegry

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

developit avatar May 21 '17 13:05 developit

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

thomasdegry avatar May 22 '17 10:05 thomasdegry

Can we make a release for this?

tumpio avatar Jun 02 '17 07:06 tumpio

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

tumpio avatar Jun 02 '17 07:06 tumpio

@developit WTH... just do it already

vsg24 avatar Jun 27 '17 14:06 vsg24