Skip to content

Commit

Permalink
Enable keep value after replicate
Browse files Browse the repository at this point in the history
Use attribute 'data-replicator-kee-value' on input for keep value after replicate
  • Loading branch information
masicek authored Oct 28, 2020
1 parent a603055 commit 024e757
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/assets/jquery.forms-replicator.js
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,10 @@
} else if ($input.is('[type=submit]')) {

} else {
$input.val('');
let keepValue = $input.data('replicatorKeepValue');
if (keepValue == undefined) {
$input.val('');
}
}
}

Expand Down

0 comments on commit 024e757

Please sign in to comment.