From 93bb8197de760f23d232dceb2396171a1a595f8e Mon Sep 17 00:00:00 2001 From: Florian Date: Tue, 7 Jul 2015 01:03:47 +0200 Subject: [PATCH] Disable browser provided autocomplete function in TitleInputWidget TitleInputWidget provides its own autocomplete suggestions, the browser suggestions (of previously entered search terms) would overlap the own suggestion list. Disable the browser provided autocomplete function with autocomplete="off". Depends on cd64c1ad3de in OOUI. Bug: T105459 Change-Id: I01468395d708d84fbaf73983d95c1461e255c600 --- resources/src/mediawiki.widgets/mw.widgets.TitleInputWidget.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/src/mediawiki.widgets/mw.widgets.TitleInputWidget.js b/resources/src/mediawiki.widgets/mw.widgets.TitleInputWidget.js index df2f1a7dee..ca8c400fcb 100644 --- a/resources/src/mediawiki.widgets/mw.widgets.TitleInputWidget.js +++ b/resources/src/mediawiki.widgets/mw.widgets.TitleInputWidget.js @@ -30,7 +30,7 @@ config = config || {}; // Parent constructor - OO.ui.TextInputWidget.call( this, config ); + OO.ui.TextInputWidget.call( this, $.extend( {}, config, { autocomplete: false } ) ); // Mixin constructors OO.ui.mixin.LookupElement.call( this, config ); -- 2.20.1