Remove highlighting when typing in a search field

Bug: T311204
Change-Id: I583c02df3def6cfeb347e9b63045b62e1d735e24
This commit is contained in:
Andrew Kostka 2022-06-30 17:27:55 +02:00 committed by Svantje Lilienthal
parent fd86b7f38d
commit 079a1ce6ff

View file

@ -104,7 +104,7 @@ ve.ui.MWTransclusionOutlineWidget.prototype.addPartWidget = function ( part, new
// We can forward these events as is. The parameter's unique ids are reused as page
// names in {@see ve.ui.MWTemplateDialog.onAddParameter}.
templateParameterAdded: [ 'emit', 'templateParameterAdded' ],
filterParametersById: [ 'emit', 'filterPagesByName' ]
filterParametersById: 'onFilterParametersByName'
} );
} else if ( part instanceof ve.dm.MWTemplatePlaceholderModel ) {
widget = new ve.ui.MWTransclusionOutlinePlaceholderWidget( part );
@ -200,3 +200,13 @@ ve.ui.MWTransclusionOutlineWidget.prototype.clear = function () {
}
this.partWidgets = {};
};
/**
* @private
*
* @param {Object} parameter
*/
ve.ui.MWTransclusionOutlineWidget.prototype.onFilterParametersByName = function ( parameter ) {
this.emit( 'filterPagesByName', parameter );
this.setSelectionByPageName();
};