зеркало из https://github.com/mozilla/pjs.git
Bug 3322: onChange won't be sent when the combo box is first clicked now. (2 of x)
This commit is contained in:
Родитель
6a4a2228b4
Коммит
49b2fa20b5
|
@ -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);
|
||||
|
|
Загрузка…
Ссылка в новой задаче