ve.ui.LookupInputWidget: Hide lookup input widget menu when empty

Change-Id: Iac397c2ddcb7ea54c751485bdd922f7b19494d1e
This commit is contained in:
Trevor Parscal 2013-06-18 12:34:01 -07:00 committed by Krinkle
parent 42f0321b84
commit db48513465

View file

@ -125,8 +125,11 @@ ve.ui.LookupInputWidget.prototype.populateLookupMenu = function () {
this.lookupMenu.clearItems();
if ( items.length ) {
this.lookupMenu.show();
this.lookupMenu.addItems( items );
this.initializeLookupMenuSelection();
} else {
this.lookupMenu.hide();
}
return this;