From 9fa2e1b9fda72369596432165829cc26e7b4f110 Mon Sep 17 00:00:00 2001 From: MarcusNotheis Date: Thu, 19 Mar 2020 14:21:07 +0100 Subject: [PATCH] fix(Polyfills): Fix scrollTo polyfill import --- packages/base/src/polyfill/Edge.ts | 4 ++-- packages/base/src/polyfill/IE11.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/base/src/polyfill/Edge.ts b/packages/base/src/polyfill/Edge.ts index 959ee689d10..f937c304fc4 100644 --- a/packages/base/src/polyfill/Edge.ts +++ b/packages/base/src/polyfill/Edge.ts @@ -1,9 +1,9 @@ import ResizeObserver from 'resize-observer-polyfill'; import 'intersection-observer'; -import smoothscroll from 'smoothscroll-polyfill'; +import { polyfill as scrollToPolyfill } from 'smoothscroll-polyfill'; // @ts-ignore window.ResizeObserver = ResizeObserver; // required for scrollTo methods -smoothscroll.polyfill(); +scrollToPolyfill(); diff --git a/packages/base/src/polyfill/IE11.ts b/packages/base/src/polyfill/IE11.ts index 4eef4336c3b..3a37af2a2db 100644 --- a/packages/base/src/polyfill/IE11.ts +++ b/packages/base/src/polyfill/IE11.ts @@ -4,10 +4,10 @@ import 'core-js/modules/es.object.values'; import 'core-js/modules/es.array.from'; import ResizeObserver from 'resize-observer-polyfill'; import 'intersection-observer'; -import smoothscroll from 'smoothscroll-polyfill'; +import { polyfill as scrollToPolyfill } from 'smoothscroll-polyfill'; // @ts-ignore window.ResizeObserver = ResizeObserver; // required for scrollTo methods -smoothscroll.polyfill(); +scrollToPolyfill();