From 6458badeccc65d707b1d16b3673c446e0c0a97af Mon Sep 17 00:00:00 2001 From: Louperivois Date: Thu, 8 Jun 2017 16:50:41 -0400 Subject: [PATCH] mw.htmlform: Fix hiding of the textbox for 'selectorother' fields on page load Bug: T166621 Change-Id: I3921651585dd8b382afc99eca18a927eba1ebe47 --- resources/src/mediawiki/htmlform/selectorother.js | 1 + 1 file changed, 1 insertion(+) diff --git a/resources/src/mediawiki/htmlform/selectorother.js b/resources/src/mediawiki/htmlform/selectorother.js index 66879e9e14..b6899d95f9 100644 --- a/resources/src/mediawiki/htmlform/selectorother.js +++ b/resources/src/mediawiki/htmlform/selectorother.js @@ -53,6 +53,7 @@ $root .on( 'change', '.mw-htmlform-select-or-other', handleSelectOrOther ) + .find( '.mw-htmlform-select-or-other' ) .each( function () { handleSelectOrOther.call( this, true ); } ); -- 2.20.1