97653 - null appears as a visible value after pressing keyboard-up, r=blake, sr=hyatt

This commit is contained in:
hewitt%netscape.com 2001-10-02 07:05:10 +00:00
parent 108729b474
commit d9c00bd886

View File

@ -910,13 +910,15 @@
if (selected != null) {
if (this.getSessionStatusAt(selected) ==
Components.interfaces.nsIAutoCompleteStatus.failureItems) {
this.value = this.currentSearchString;
if (this.currentSearchString)
this.value = this.currentSearchString;
} else {
this.value = this.getResultValueAt(selected);
}
this.mTransientValue = true;
} else {
this.value = this.currentSearchString;
if (this.currentSearchString)
this.value = this.currentSearchString;
this.mTransientValue = false;
}