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

Combobox: multiple fixes. #674

Closed
wants to merge 11 commits into from
7 changes: 5 additions & 2 deletions Combobox.js
Original file line number Diff line number Diff line change
Expand Up @@ -669,8 +669,11 @@ define([
// inputNode does not contain text
if (!this.hasDownArrow) {
// in auto complete mode
this.closeDropDown();
this._toggleComboPopupList();
if (this._isMobile) {
this._toggleComboPopupList();
} else {
this.closeDropDown();
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You should have a test and a ticket for the bug you are fixing. I also don't understand the commit comment. It says:

when inputNode was empty and in mobile, the popup used to close by itself

That makes it sound like ComboPopup would close immediately after opening, since when the ComboPopup opens the inputNode is empty. Actually, I'm not sure if inputNode is the <input> in the original ComboBox or the <input> in the ComboPopup.

return false;
}
}
Expand Down