@vaadin-component-factory/vcf-nav
Advanced tools
Comparing version 1.1.0 to 1.1.1
{ | ||
"name": "@vaadin-component-factory/vcf-nav", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"homepage": "https://github.com/vaadin/vcf-nav", | ||
@@ -5,0 +5,0 @@ "repository": "https://github.com/vaadin/vcf-nav", |
@@ -65,3 +65,3 @@ # vcf-nav | ||
newItems.getElement().setAttribute("slot", "suffix"); | ||
dashboard.getElement().appendChild(newItems); | ||
dashboard.getElement().appendChild(newItems.getElement()); | ||
@@ -68,0 +68,0 @@ AppNavItem parent = new AppNavItem("Parent"); |
@@ -223,3 +223,10 @@ import { html, css, LitElement } from 'lit'; | ||
// Absolute path or no base uri in use. No special comparison needed | ||
this.active = document.location.pathname == this.path; | ||
if (pathAbsolute) { | ||
// Compare an absolute view path | ||
this.active = document.location.pathname == this.path; | ||
} else { | ||
// Compare a relative view path (strip the starting slash) | ||
this.active = document.location.pathname.substring(1) == this.path; | ||
} | ||
} | ||
@@ -226,0 +233,0 @@ this.toggleAttribute('child-active', document.location.pathname.startsWith(this.path)); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
26694
322