@salesforcedevs/docs-components
Advanced tools
Comparing version 1.3.296 to 1.3.300
{ | ||
"name": "@salesforcedevs/docs-components", | ||
"version": "1.3.296", | ||
"version": "1.3.300", | ||
"description": "Docs Lightning web components for DSC", | ||
@@ -27,3 +27,3 @@ "license": "MIT", | ||
}, | ||
"gitHead": "7a3e47bb11802dbded4c5bd3814b408cbeedecd7" | ||
"gitHead": "f38c6bd9c9360f64cd7ed0e61184e4685049c673" | ||
} |
@@ -115,12 +115,19 @@ import { LightningElement, api } from "lwc"; | ||
if (!this.observer) { | ||
this.observer = new ResizeObserver((entries) => { | ||
const [nav] = entries; | ||
if (this.navWidth === nav.contentRect.width) { | ||
return; | ||
} | ||
this.navWidth = nav.contentRect.width; | ||
this.updateDropdownOptionAmount(); | ||
}); | ||
try { | ||
this.observer = new ResizeObserver((entries) => { | ||
const [nav] = entries; | ||
if (this.navWidth === nav.contentRect.width) { | ||
return; | ||
} | ||
this.navWidth = nav.contentRect.width; | ||
this.updateDropdownOptionAmount(); | ||
}); | ||
this.observer.observe(this.template.querySelector("nav")!); | ||
this.observer.observe(this.template.querySelector("nav")!); | ||
} catch (error) { | ||
console.error( | ||
"Error occured while setting up ResizeObserver on breadcrumbs", | ||
error | ||
); | ||
} | ||
} | ||
@@ -127,0 +134,0 @@ } |
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
255885
6526
21
39
7
223