tagmanager icon indicating copy to clipboard operation
tagmanager copied to clipboard

Text over placeholder text after tagging with Typeahead.JS

Open cait08 opened this issue 10 years ago • 3 comments

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?

cait08 avatar Sep 02 '14 03:09 cait08

Confirmed behavior.

seanahrens avatar Sep 23 '14 10:09 seanahrens

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 avatar Nov 05 '14 22:11 hessius

hessius, thanks for this hint)

AlbertRAR avatar Apr 30 '15 10:04 AlbertRAR