From e80a7293e7f36b74602e900260c646a71c203008 Mon Sep 17 00:00:00 2001 From: "alex.saiannyi" Date: Tue, 15 Sep 2020 19:31:29 +0300 Subject: [PATCH] fix(storefront)BCTHEME-164: fix image in modal for IE11 --- CHANGELOG.md | 1 + assets/js/theme/global.js | 2 -- assets/js/theme/global/object-fit-polyfill.js | 5 ----- 3 files changed, 1 insertion(+), 7 deletions(-) delete mode 100644 assets/js/theme/global/object-fit-polyfill.js diff --git a/CHANGELOG.md b/CHANGELOG.md index 38f3f391be..16b455803a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,7 @@ # Changelog ## Draft +- Fixed image in modal for IE. [#1840](https://github.com/bigcommerce/cornerstone/pull/1840) - Create unified focus styling in Cornerstone. [#1812](https://github.com/bigcommerce/cornerstone/pull/1812) - Review link in quick modal focused twice. [#1797](https://github.com/bigcommerce/cornerstone/pull/1797) - Fixed product image doesn't change on click when viewing a product with multiple images in IE11 [#1748](https://github.com/bigcommerce/cornerstone/pull/1748) diff --git a/assets/js/theme/global.js b/assets/js/theme/global.js index 12407a98b1..09b9ff6c01 100644 --- a/assets/js/theme/global.js +++ b/assets/js/theme/global.js @@ -15,7 +15,6 @@ import adminBar from './global/adminBar'; import carousel from './common/carousel'; import loadingProgressBar from './global/loading-progress-bar'; import svgInjector from './global/svg-injector'; -import objectFitImages from './global/object-fit-polyfill'; export default class Global extends PageManager { onReady() { @@ -36,6 +35,5 @@ export default class Global extends PageManager { } loadingProgressBar(); svgInjector(); - objectFitImages(); } } diff --git a/assets/js/theme/global/object-fit-polyfill.js b/assets/js/theme/global/object-fit-polyfill.js deleted file mode 100644 index 2c652371f7..0000000000 --- a/assets/js/theme/global/object-fit-polyfill.js +++ /dev/null @@ -1,5 +0,0 @@ -import objectFitImages from 'object-fit-images'; - -export default function () { - objectFitImages(); -}