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

clear input after click #93

Closed
pixelomedia opened this Issue Oct 20, 2015 · 5 comments

Comments

Projects
None yet
2 participants
@pixelomedia

pixelomedia commented Oct 20, 2015

Hi, I want to clear input after select from hint list. Nothing like .val() is working. Is there some solution?

Thanks

@running-coder

This comment has been minimized.

Owner

running-coder commented Oct 20, 2015

Hey, have you tried

callback: {
    onClickAfter: function (node, a, item, event) {
        node.val('');
    }
}
@pixelomedia

This comment has been minimized.

pixelomedia commented Oct 20, 2015

Thank you so much for quickly support! This one working pretty well, I didn't found it in documentation or support. Cheers

@pixelomedia

This comment has been minimized.

pixelomedia commented Oct 20, 2015

Sorry. I think everything is fine - but not. This one is doing same problem like I trying with remove some of your code. First searching si working. But every next search is return TypeError: this.xhr[i].abort is not a function this.xhr[i].abort(); in console

@running-coder

This comment has been minimized.

Owner

running-coder commented Oct 20, 2015

I was able to reproduce the error with jquery 2.1.x while it's working fine on 1.11.x, perhaps the .abort() behavior was changed. Anyway I've added a small fix to clear the request from memory once they are completed.

@pixelomedia

This comment has been minimized.

pixelomedia commented Oct 20, 2015

Amazing support! Yes, I used jquery 2.1. Now everything working perfectly. Thank you

running-coder added a commit that referenced this issue Oct 22, 2015

Version 2.1.3
Fixes #87 {{query}} on url does not get updated on the second search
Fixes #92 resultContainer wont dismiss on blur
Fixes #93 Sending xhr request are not cleared once completed
Fixes #94 onLayoutBuiltBefore & this.hintIndex ordering issue

Minor CSS compatibility issue w/ Bootstrap4
Replaced deprecated $Ajax.complete callback -> http://api.jquery.com/jquery.ajax/ for jQuery 3.0-alpha
Minor: Fixed CSS issue on dark background using hint option
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment