@vaadin-component-factory/vcf-anchor-nav
Advanced tools
Comparing version 1.2.6 to 1.2.7
{ | ||
"name": "@vaadin-component-factory/vcf-anchor-nav", | ||
"version": "1.2.6", | ||
"version": "1.2.7", | ||
"description": "Component with tabs used as anchor navigation and content sections. Automates the linking of tabs and sections.", | ||
@@ -5,0 +5,0 @@ "main": "vcf-anchor-nav.js", |
@@ -147,3 +147,3 @@ import { html, PolymerElement } from '@polymer/polymer/polymer-element'; | ||
static get version() { | ||
return '1.2.6'; | ||
return '1.2.7'; | ||
} | ||
@@ -285,3 +285,3 @@ | ||
// Hack to fix initial scroll on Firefox | ||
setTimeout(() => { | ||
requestAnimationFrame(() => { | ||
// Scroll to and select section in URL hash if possible | ||
@@ -363,3 +363,3 @@ if (location.hash) { | ||
_initTabsStuckAttribute() { | ||
setTimeout(() => { | ||
requestAnimationFrame(() => { | ||
const observer = new IntersectionObserver( | ||
@@ -428,4 +428,6 @@ ([e]) => { | ||
_setSelectedSection(sectionIndex) { | ||
this.selectedIndex = sectionIndex; | ||
this._scrollToSection(sectionIndex, false); | ||
requestAnimationFrame(() => { | ||
this.selectedIndex = sectionIndex; | ||
this._scrollToSection(sectionIndex, false); | ||
}); | ||
} | ||
@@ -432,0 +434,0 @@ |
218149
2310