Merge "mw.htmlform: Fix hiding of the textbox for 'selectorother' fields on page...
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Mon, 31 Jul 2017 13:43:32 +0000 (13:43 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Mon, 31 Jul 2017 13:43:32 +0000 (13:43 +0000)
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 );
                        } );