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

On form reset, all input drop-down open up if "minLength:0" and "searchOnFocus: true" #243

Closed
bharath4u3 opened this Issue Oct 1, 2016 · 3 comments

Comments

Projects
None yet
3 participants
@bharath4u3

bharath4u3 commented Oct 1, 2016

As you can see in hte git below that when reset button is clicked the input fields clear but the dropdown opens up.

Additionally for support: is there anything I can trigger a close of the dropdown on input blur (i.e. going to a different tab on the browser.)

Here is the jsfiddle to reproduce the issue: https://jsfiddle.net/bharath4u3/dh9cyabb/
dit fiddle - jsfiddle20160930185609

@running-coder

This comment has been minimized.

Owner

running-coder commented Oct 3, 2016

hey @bharath4u3 thanks for letting me know, looks like I misunderstood what @hsdhott was trying to say in #221 hehe

@running-coder running-coder added the Bug label Oct 3, 2016

@running-coder running-coder added this to the 2.7.2 milestone Oct 3, 2016

running-coder added a commit that referenced this issue Oct 3, 2016

@hsdhott

This comment has been minimized.

hsdhott commented Oct 3, 2016

@running-coder that's exactly what I was talking. @bharath4u3 thank you for point it out.

On that note, I'm also noticing that when we clear input field through jquery/js ($('#mySearchInput').val('').trigger('input.typeahead') - as mention in #221). It open the dropdown field. Can we avoid that as well?

Additionally, how can I close the dropdown on blur (i.e. going to a different browser or tab).

Thank you so much for your help.

@running-coder

This comment has been minimized.

Owner

running-coder commented Oct 3, 2016

you can always call the hideLayout function, Typeahead['.js-selector'].hideLayout()

running-coder added a commit that referenced this issue Oct 26, 2016

Version 2.7.2
Fix #243 On form reset, hide the result list
Fix #248 Dynamic Ajax GET query would not generate dropdown list when aborted
Fix #249 Fix the Click action when `options.href` is defined
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment