mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-24 06:24:08 +00:00
Merge "Unhighlight parameter on blur"
This commit is contained in:
commit
684a69c17e
|
@ -30,7 +30,7 @@ ve.ui.MWTransclusionOutlineParameterSelectWidget = function VeUiMWTransclusionOu
|
|||
this.$element
|
||||
.on( {
|
||||
focus: this.bindDocumentKeyDownListener.bind( this ),
|
||||
blur: this.unbindDocumentKeyDownListener.bind( this )
|
||||
blur: this.onBlur.bind( this )
|
||||
} );
|
||||
|
||||
this.itemSet = null;
|
||||
|
@ -245,3 +245,8 @@ ve.ui.MWTransclusionOutlineParameterSelectWidget.prototype.onDocumentKeyDown = f
|
|||
|
||||
ve.ui.MWTransclusionOutlineParameterSelectWidget.super.prototype.onDocumentKeyDown.call( this, e );
|
||||
};
|
||||
|
||||
ve.ui.MWTransclusionOutlineParameterSelectWidget.prototype.onBlur = function () {
|
||||
this.highlightItem();
|
||||
this.unbindDocumentKeyDownListener();
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue