From de578c6e931ae0f506f730f5cb17b6d7422be088 Mon Sep 17 00:00:00 2001 From: Mike Gerwitz Date: Thu, 8 Feb 2018 09:28:15 -0500 Subject: [PATCH] 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. --- src/ui/ElementStyler.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/ui/ElementStyler.js b/src/ui/ElementStyler.js index 82fa9c8..3b19143 100644 --- a/src/ui/ElementStyler.js +++ b/src/ui/ElementStyler.js @@ -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 ) {