Skip to content

Commit f1b90f7

Browse files
committed
Bug fix: product setting change requires focus out event to be saved
1 parent 0dd25b1 commit f1b90f7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

js/admin-product.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -608,7 +608,7 @@ jQuery(document).ready(function($) {
608608
var option = jQuery(this).data('option');
609609
setAttachmentOption(attachment_id, option, jQuery(this)[0].checked);
610610
});
611-
tag.find('.pdf-options input[type=text], .pdf-options select').change(function() {
611+
tag.find('.pdf-options input[type=text], .pdf-options select').on("input change", function() {
612612
var attachment_id = jQuery(this).data('attachment_id');
613613
var option = jQuery(this).data('option');
614614
setAttachmentOption(attachment_id, option, jQuery(this).val());
@@ -910,7 +910,7 @@ jQuery(document).ready(function($) {
910910

911911
select.val(data.pdf_value).trigger('change');
912912

913-
select.change(function() {
913+
select.on("input change", function() {
914914
jQuery(this).prev().val(jQuery(this).val()).trigger('change');
915915
});
916916
}
@@ -1332,7 +1332,7 @@ jQuery(document).ready(function($) {
13321332
});
13331333
});
13341334

1335-
tag.find('input.coordinate').change(updateRegion);
1335+
tag.find('input.coordinate').on("input change", updateRegion);
13361336

13371337
jQuery(image).attr('src', data.snapshot);
13381338
}

0 commit comments

Comments
 (0)