1
0
Fork 0

ElementStyler: jQuery BC for radios (bugfix)

Of course, the radios are actually checkboxes...radioboxes.

* src/ui/ElementStyler.js (setValueByName): Recognize both jQuery and DOM
  elements.
master
Mike Gerwitz 2018-02-08 09:28:15 -05:00
parent 70ba408c37
commit de578c6e93
1 changed files with 4 additions and 1 deletions

View File

@ -492,7 +492,10 @@ module.exports = Class( 'ElementStyler',
var i = elements.length;
while ( i-- )
{
const question = elements[ i ][ 0 ];
// BC until jQuery is fully removed
const question = ( elements[ i ] instanceof jQuery )
? elements[ i ][ 0 ]
: elements[ i ];
if ( question )
{