зеркало из https://github.com/mozilla/gecko-dev.git
Bug 3322: onChange won't be sent when the combo box is first clicked now. (2 of x)
This commit is contained in:
Родитель
104286c4b7
Коммит
4197c9e7d7
|
@ -731,6 +731,7 @@ nsSelectControlFrame::Reset()
|
|||
// if none were selected, select 1st one if we are a combo box
|
||||
if (mIsComboBox && (numOptions > 0) && (selectedIndex < 0)) {
|
||||
listWidget->SelectItem(0);
|
||||
SetOptionSelected(0, PR_TRUE);
|
||||
}
|
||||
NS_RELEASE(listWidget);
|
||||
NS_RELEASE(options);
|
||||
|
|
Загрузка…
Ссылка в новой задаче