@vaadin-component-factory/vcf-anchor-nav
Advanced tools
Comparing version 23.2.0 to 23.2.1
{ | ||
"name": "@vaadin-component-factory/vcf-anchor-nav", | ||
"version": "23.2.0", | ||
"version": "23.2.1", | ||
"description": "Component with tabs used as anchor navigation and content sections. Automates the linking of tabs and sections.", | ||
@@ -48,6 +48,6 @@ "main": "vcf-anchor-nav.js", | ||
"@polymer/polymer": "^3.0.0", | ||
"@vaadin/component-base": "^23.2.4", | ||
"@vaadin/tabs": "^23.2.4", | ||
"@vaadin/vaadin-lumo-styles": "^23.2.4", | ||
"@vaadin/vaadin-themable-mixin": "^23.2.4", | ||
"@vaadin/component-base": "^23.2.8", | ||
"@vaadin/tabs": "^23.2.8", | ||
"@vaadin/vaadin-lumo-styles": "^23.2.8", | ||
"@vaadin/vaadin-themable-mixin": "^23.2.8", | ||
"intersection-observer": "^0.10.0", | ||
@@ -54,0 +54,0 @@ "smoothscroll-polyfill": "^0.4.4", |
@@ -151,3 +151,3 @@ import { html, PolymerElement } from '@polymer/polymer/polymer-element'; | ||
static get version() { | ||
return '23.2.0'; | ||
return '23.2.1'; | ||
} | ||
@@ -192,2 +192,11 @@ | ||
value: false | ||
}, | ||
/** | ||
* Set true to enable smooth scroll animation on tab clicks. | ||
* @type {Boolean} | ||
*/ | ||
smoothScroll: { | ||
type: Boolean, | ||
value: true | ||
} | ||
@@ -328,5 +337,3 @@ }; | ||
tab.setAttribute('part', 'tab'); | ||
tab.addEventListener('click', () => { | ||
this._scrollToSection(section.id, false, this._deepLinks); | ||
}); | ||
tab.addEventListener('click', () => this._scrollToSection(section.id, this.smoothScroll, this._deepLinks)); | ||
this._setTabAnchor(tab, section); | ||
@@ -333,0 +340,0 @@ } |
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
Found 1 instance in 1 package
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
Found 1 instance in 1 package
220575
2378