We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fa93def commit 34ad9e3Copy full SHA for 34ad9e3
app/code/Magento/Swatches/view/base/web/js/swatch-renderer.js
@@ -296,6 +296,12 @@ define([
296
* @private
297
*/
298
_init: function () {
299
+ // Don't render the same set of swatches twice
300
+ if ($(this.element).attr('data-rendered')) {
301
+ return;
302
+ }
303
+ $(this.element).attr('data-rendered', true);
304
+
305
if (_.isEmpty(this.options.jsonConfig.images)) {
306
this.options.useAjax = true;
307
// creates debounced variant of _LoadProductMedia()
0 commit comments