developit/tags-input

pattern= doesn't seem to work as expected

Open

#20 opened on Jan 18, 2017

View on GitHub
 (2 comments) (0 reactions) (0 assignees)JavaScript (46 forks)github user discovery
enhancementhelp wanted

Repository metrics

Stars
 (333 stars)
PR merge metrics
 (No merged PRs in 30d)

Description

See jsfiddle at http://jsfiddle.net/d5w4jpxq/71/ :

<input name="hashtags" type="tags" pattern="^#" placeholder="#hashtags">

Still allows data that doesn't start with a hash to be entered. The docs mention HTML5 pattern support - should we use pattern to limit the input or should we do this via change events?

Contributor guide