Disable auto-capitalization hint on search field of wikis with $wgCapitalLinks = false

Pass the value of autocapitalize to the SearchOverlay in MobileFrontend

Depends-On: I98ea142b2b39d699bb144eb528b12a5a4dcd0667
Bug: T251664
Change-Id: I082233fd5ac0a5d6d88794ef7cf4b1b13f43c708
This commit is contained in:
Jon Robson 2022-11-16 16:58:15 -08:00
parent 5be882421d
commit 9ea73b920e

View file

@ -40,6 +40,7 @@ module.exports = function () {
router: overlayManager.router,
gatewayClass: SearchGateway,
api: new mw.Api(),
autocapitalize: $searchInput.prop( 'autocapitalize' ),
searchTerm: $searchInput.val(),
placeholderMsg: placeholder,
defaultSearchPage: defaultSearchPage