mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-24 22:35:41 +00:00
Merge "Fix docs in ve.ui.MWParameterSearchWidget.js"
This commit is contained in:
commit
3050b22ea2
|
@ -12,6 +12,7 @@
|
|||
* @extends OO.ui.SearchWidget
|
||||
*
|
||||
* @constructor
|
||||
* @param {ve.dm.MWTemplateModel} template Template model
|
||||
* @param {Object} [config] Configuration options
|
||||
* @cfg {number|null} [limit=3] Limit on the number of initial options to show, null to show all
|
||||
*/
|
||||
|
@ -173,7 +174,7 @@ ve.ui.MWParameterSearchWidget.prototype.addResults = function () {
|
|||
}
|
||||
|
||||
this.results.addItems( items );
|
||||
if ( query.length ) {
|
||||
if ( hasQuery ) {
|
||||
this.results.highlightItem( this.results.getFirstSelectableItem() );
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue