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 b300e72 commit a0363f5Copy full SHA for a0363f5
app/code/Magento/Swatches/view/frontend/web/js/swatch-renderer.js
@@ -945,7 +945,9 @@ define([
945
$widget.options.mediaCache[mediaCacheKey] = data;
946
}
947
$widget._ProductMediaCallback($this, data, productData.isInProductView);
948
- $widget._DisableProductMediaLoader($this);
+ setTimeout(function() {
949
+ $widget._DisableProductMediaLoader($this)
950
+ }, 300);
951
};
952
953
if (!$widget.options.mediaCallback) {
@@ -959,6 +961,7 @@ define([
959
961
960
962
if (mediaCacheKey in $widget.options.mediaCache) {
963
$widget._XhrKiller();
964
+ $widget._EnableProductMediaLoader($this);
965
mediaSuccessCallback($widget.options.mediaCache[mediaCacheKey]);
966
} else {
967
mediaCallData.isAjax = true;
0 commit comments