@salesforcedevs/docs-components
Advanced tools
Comparing version 1.3.262 to 1.3.264
{ | ||
"name": "@salesforcedevs/docs-components", | ||
"version": "1.3.262", | ||
"version": "1.3.264", | ||
"description": "Docs Lightning web components for DSC", | ||
@@ -27,3 +27,3 @@ "license": "MIT", | ||
}, | ||
"gitHead": "fa38a93ede50fc83e6bf65da359a8db469288e9b" | ||
"gitHead": "75fca6ea2ade879a9be5838ceed9a8ca47a3cc47" | ||
} |
@@ -91,6 +91,2 @@ import { LightningElement, api } from "lwc"; | ||
this.scrollToTop(container); | ||
} | ||
scrollToTop(container: Element) { | ||
const isTabletOrDesktop = window.matchMedia( | ||
@@ -100,8 +96,4 @@ `(min-width: ${TABLE_SIZE_MATCH})` | ||
// We need to scroll to top from the tablet size as side nav bar and content in side by side from tablet size | ||
if (isTabletOrDesktop) { | ||
// Sync with the browser to account for any reflows that may have happened | ||
requestAnimationFrame(() => { | ||
container?.scrollIntoView(true); | ||
}); | ||
window.scrollTo(0, 0); | ||
} | ||
@@ -108,0 +100,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
255606
6519