From 662a5d308e6196448b360590273574ca1453c9d2 Mon Sep 17 00:00:00 2001 From: tjones Date: Tue, 24 Sep 2019 16:42:05 -0400 Subject: [PATCH] Enable preservation of grapheme clusters in highlightQuery Make use of the option to preserve grapheme clusters in highlightQuery in OOUI's LabelElement.js so that partial matches in the main search page on Special:Search don't break graphemes. Bug: T35242 Depends-On: Iac79095a1b40ef92b3cfd9421916928217639434 Change-Id: I5c458da39156db8a39412b91cf647aacd43fbbb9 --- resources/src/mediawiki.widgets/mw.widgets.TitleOptionWidget.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/src/mediawiki.widgets/mw.widgets.TitleOptionWidget.js b/resources/src/mediawiki.widgets/mw.widgets.TitleOptionWidget.js index 0eb1134f11..89de1551f9 100644 --- a/resources/src/mediawiki.widgets/mw.widgets.TitleOptionWidget.js +++ b/resources/src/mediawiki.widgets/mw.widgets.TitleOptionWidget.js @@ -73,7 +73,7 @@ // Highlight matching parts of link suggestion if ( config.query ) { - this.setHighlightedQuery( config.data, config.query, config.compare ); + this.setHighlightedQuery( config.data, config.query, config.compare, true ); } this.$label.attr( 'title', config.data ); -- 2.20.1