Skip to content

Instantly share code, notes, and snippets.

@ichaykin
Created November 9, 2021 12:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ichaykin/7b588dfb26a1eff16a30f8d84f0694bb to your computer and use it in GitHub Desktop.
Save ichaykin/7b588dfb26a1eff16a30f8d84f0694bb to your computer and use it in GitHub Desktop.
diff --git a/js/tygh/backend/promotion_update.js b/js/tygh/backend/promotion_update.js
index de999b7507..93e9159e94 100644
--- a/js/tygh/backend/promotion_update.js
+++ b/js/tygh/backend/promotion_update.js
@@ -111,8 +111,9 @@
}
this.$childSelect.attr('multiple', childSelect2Settings.multiple);
- this.$childInput.addClass('hidden');
this.$childSelect.prop('disabled', false);
+ this.$childInput.addClass('hidden');
+ this.$childInput.prop('disabled', true);
var value = $.makeArray(this.$childSelect.val()).filter(function (val) { return Boolean(val); } );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment