Merge "Unhighlight parameter on blur"

This commit is contained in:
jenkins-bot 2022-07-18 11:47:08 +00:00 committed by Gerrit Code Review
commit 684a69c17e

View file

@ -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();
};