Merge "Correct focus handling when adding undocumented parameters"

This commit is contained in:
jenkins-bot 2021-08-30 15:43:35 +00:00 committed by Gerrit Code Review
commit 7f8b6202ac
2 changed files with 5 additions and 2 deletions

View file

@ -98,12 +98,14 @@ ve.ui.MWAddParameterPage.prototype.onParameterInput = function () {
ve.ui.MWAddParameterPage.prototype.togglePlaceholder = function ( expand ) {
this.isExpanded = expand === undefined ? !this.isExpanded : !!expand;
this.addParameterInputField.toggle( this.isExpanded );
this.addParameterInputHeader.setIcon( this.isExpanded ? 'subtract' : 'add' );
this.addParameterFieldset.$element.toggleClass(
've-ui-mwTransclusionDialog-addParameterFieldset-collapsed',
!this.isExpanded
);
if ( this.isExpanded ) {
this.paramInputField.focus();
}
};
ve.ui.MWAddParameterPage.prototype.setOutlineItem = function () {

View file

@ -28,7 +28,8 @@
padding-bottom: 5em;
}
.ve-ui-mwTransclusionDialog-addParameterFieldset-collapsed .oo-ui-inline-help {
.ve-ui-mwTransclusionDialog-addParameterFieldset-collapsed .oo-ui-inline-help,
.ve-ui-mwTransclusionDialog-addParameterFieldset-collapsed .ve-ui-mwTransclusionDialog-addParameterFieldset-input {
display: none;
}