mw.htmlform: Fix hiding of the textbox for 'selectorother' fields on page load
authorLouperivois <plmoell@hotmail.com>
Thu, 8 Jun 2017 20:50:41 +0000 (16:50 -0400)
committerLouperivois <plmoell@hotmail.com>
Sun, 30 Jul 2017 21:07:12 +0000 (17:07 -0400)
Bug: T166621
Change-Id: I3921651585dd8b382afc99eca18a927eba1ebe47

resources/src/mediawiki/htmlform/selectorother.js

index 66879e9..b6899d9 100644 (file)
@@ -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 );
                        } );