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
parent
70ba408c37
commit
de578c6e93
|
@ -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 )
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue