diff --git a/lib/common-js-modules.js b/lib/common-js-modules.js index 86a6e14..74c4f26 100644 --- a/lib/common-js-modules.js +++ b/lib/common-js-modules.js @@ -1,5 +1,4 @@ require('intersection-observer'); -const stickyPolyfill = require('stickyfilljs'); const smoothScrollPolyfill = require('smoothscroll-polyfill').polyfill; -module.exports = { smoothScrollPolyfill, stickyPolyfill }; +module.exports = { smoothScrollPolyfill }; diff --git a/package.json b/package.json index da5ef3c..42a1222 100644 --- a/package.json +++ b/package.json @@ -50,8 +50,7 @@ "@vaadin/vaadin-lumo-styles": "^23.3.1", "@vaadin/vaadin-themable-mixin": "^23.3.1", "intersection-observer": "^0.10.0", - "smoothscroll-polyfill": "^0.4.4", - "stickyfilljs": "^2.1.0" + "smoothscroll-polyfill": "^0.4.4" }, "devDependencies": { "@babel/core": "^7.5.5", diff --git a/src/vcf-anchor-nav.js b/src/vcf-anchor-nav.js index 758ea06..58cba69 100644 --- a/src/vcf-anchor-nav.js +++ b/src/vcf-anchor-nav.js @@ -1,7 +1,7 @@ import { html, PolymerElement } from '@polymer/polymer/polymer-element'; import { ThemableMixin } from '@vaadin/vaadin-themable-mixin'; import { ElementMixin } from '@vaadin/component-base/src/element-mixin'; -import { smoothScrollPolyfill, stickyPolyfill } from '../lib/common-js-modules.esm'; +import { smoothScrollPolyfill } from '../lib/common-js-modules.esm'; import { ResizeObserver } from '@juggle/resize-observer'; import '@vaadin/tabs/vaadin-tabs'; import '@vaadin/tabs/vaadin-tab'; @@ -244,9 +244,8 @@ export class AnchorNavElement extends ElementMixin(ThemableMixin(PolymerElement) ready() { super.ready(); this._verticalTabs = false; - // Add polyfills + // Add polyfill smoothScrollPolyfill(); - stickyPolyfill.add(this.$.tabs); // Init observers this._initTabsStuckAttribute(); this._initWindowResizeListener();