Skip to content

Commit

Permalink
fix checkbox data saving
Browse files Browse the repository at this point in the history
  • Loading branch information
sapayth committed Dec 3, 2023
1 parent d5492d9 commit d7678ac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions assets/js/frontend-form.js
Original file line number Diff line number Diff line change
Expand Up @@ -351,8 +351,8 @@
var div = $( this ).closest( '.wpuf-column-field-inner-columns.column-repeat' );
var clone = div.clone();

//clear the inputs
clone.find( 'input' ).val( '' );
// clear the inputs
clone.find( 'input:not(:checkbox):not(:radio)' ).val( '' );
clone.find( 'textarea' ).val( '' );
clone.find( ':checked' ).prop( 'checked', false );
div.after( clone );
Expand Down

0 comments on commit d7678ac

Please sign in to comment.