Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Text over placeholder text after tagging with Typeahead.JS #224

Open
cait08 opened this issue Sep 2, 2014 · 3 comments
Open

Text over placeholder text after tagging with Typeahead.JS #224

cait08 opened this issue Sep 2, 2014 · 3 comments

Comments

@cait08
Copy link

cait08 commented Sep 2, 2014

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?

@seanahrens
Copy link

Confirmed behavior.

@hessius
Copy link

hessius commented Nov 5, 2014

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', '');

@AlbertRAR
Copy link

hessius, thanks for this hint)

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

No branches or pull requests

4 participants