Skip to content

Commit

Permalink
gw-none-of-the-above-checkbox.js: Fixed an issue with the snippet n…
Browse files Browse the repository at this point in the history
…ot working.

Co-authored-by: Clay Griffiths <[email protected]>
  • Loading branch information
saifsultanc and claygriffiths authored Oct 30, 2023
1 parent 2f4fedc commit 6806f7a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gravity-forms/gw-none-of-the-above-checkbox.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ $( '.gw-none-of-the-above' ).each( function() {
var $others = $field.find( 'input' ).not( $last );

// If "None of the Above" choice is checked by default.
if ( $( $last ).prop( 'checked' ) ) {
if ( $last.prop( 'checked' ) ) {
var $checkboxes = $field.find( 'input' ).not( $last )
$checkboxes
.prop( 'checked', false )
Expand Down

0 comments on commit 6806f7a

Please sign in to comment.