tagmanager
tagmanager copied to clipboard
Text over placeholder text after tagging with Typeahead.JS
To replicate: Go to the examples page (http://welldonethings.com/tags/manager/v3) and scroll down to the Typeahead.JS demo. Enter an incomplete term, something simple like "e". It will suggest "Estonia". The tag "e" will be added. The typeahead for "e" will still be up suggesting "Estonia", the field will still have "estonia" in it, and underneath it there will be the placeholder text "Tags".
In theory, shouldn't the typeahead close after you've entered a tag, and shouldn't the field go back to just the placeholder text?
Confirmed behavior.
Has anyone found a fix or work-around for this? EDIT: Google and ye shall find! This is actually an issue with typeahead rather than tagsmanager. bind this to .blur() of the text input and the problem is solved.
$(el).typeahead('val', '');
hessius, thanks for this hint)