We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 0dc0840 + f644588 commit 0efc072Copy full SHA for 0efc072
view/adminhtml/web/js/modly.js
@@ -941,7 +941,10 @@ define([
941
question.find('.modly-group:first').find('.remove-group-button').closest('.field').hide();
942
$('.group-button').unbind('click').on('click', function () {
943
question.find('.modly-group:last').clone().appendTo('.question');
944
- question.find('.modly-group:last').find('.modly-field').val('');
+ question.find('.modly-group:last').find('.modly-field').each(function (i, e) {
945
+ let o = $(e).find('option:first')
946
+ $(e).val($(o).val());
947
+ });
948
question.find('.modly-group:last').find('.remove-group-button').closest('.field').show();
949
$('.remove-group-button').unbind('click').on('click', function () {
950
$(this).closest('.modly-group').remove();
0 commit comments