-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
AutoComplete: List doesn't close when it loses focus after scrolling #981
Comments
This issue should surface in browsers (IE, Chrome) other than Firefox, as The quick fix for this that I could think right now is to also check the target for html or body using _afterDocClick: function (e) {
var boundingBox = this._boundingBox,
target = e.target;
if(target.test('html,body') || (
target !== this._inputNode &&
target !== boundingBox &&
target.ancestor('#' + boundingBox.get('id'), true))){
this.hide();
}
} @lsmith. Are you good with this fix? If so, I will submit a pull request for this fix. |
@gurumvg Actually, looking at this code again, I'm wondering why that @saw, it looks like you made that change in commit ebb4caa. Do you remember why the ancestor test is truthy instead of falsy? Just a mistake, or was there some reason I'm missing? |
@rgrove I believe the |
@gurumvg Nope, item clicks are handled by If you look at ebb4caa, the original behavior of |
agreed @rgrove, will try to convert the truthy check to falsy and see if it breaks anything. |
Changing the truthy |
Hrm, thinking back into the past I think this must have been a mistake, I was just trying to fix a different issue. |
Thanks guys! I'll get this fixed soon. |
Moving out of Sprint 9 into Sprint 10. Feel free to unassign milestone if you wish. |
Hello, just wondering if you are still planning to fix this issue? |
@SherryH Thanks for the reminder! So sorry for forgetting about this; I got busy and it totally slipped my mind. This is fixed now in the dev-master and dev-3.x branches, and should be in the next release. |
@rgrove Thanks very much! 👍 |
The dropdown list of an autocomplate widget would normally close when it loses focus, but it does not close after you scroll the list by clicking the up/down arrows in the scrollbar.
To Reproduce:
Expected Outcome:
The autocomplete dropdown list should hide.
Actual Outcome:
It doesn't.
The text was updated successfully, but these errors were encountered: