mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-24 22:35:41 +00:00
ve.ui.LookupInputWidget: Hide lookup input widget menu when empty
Change-Id: Iac397c2ddcb7ea54c751485bdd922f7b19494d1e
This commit is contained in:
parent
42f0321b84
commit
db48513465
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue