зеркало из https://github.com/mozilla/pjs.git
Bug 406487: be sure to reset mTree when changing autocomplete inputs, so that we properly set the selection when adusting the results, r=enndeakin
This commit is contained in:
Родитель
8f9765239f
Коммит
e0e71ac0f1
|
@ -137,6 +137,9 @@ nsAutoCompleteController::SetInput(nsIAutoCompleteInput *aInput)
|
|||
nsAutoString newValue;
|
||||
mInput->GetTextValue(newValue);
|
||||
|
||||
// Clear out this reference in case the new input's popup has no tree
|
||||
mTree = nsnull;
|
||||
|
||||
// Reset all search state members to default values
|
||||
mSearchString = newValue;
|
||||
mEnterAfterSearch = 0;
|
||||
|
|
Загрузка…
Ссылка в новой задаче