@salesforcedevs/docs-components 1.3.120-alpha.1 → 1.3.120-alpha.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforcedevs/docs-components",
3
- "version": "1.3.120-alpha.1",
3
+ "version": "1.3.120-alpha.2",
4
4
  "description": "Docs Lightning web components for DSC",
5
5
  "license": "MIT",
6
6
  "main": "index.js",
@@ -405,6 +405,10 @@ export default class ContentLayout extends LightningElement {
405
405
 
406
406
  private onToggleSidebar(e: CustomEvent): void {
407
407
  this.sidebarOpen = e.detail.open;
408
+
409
+ if (e.detail.open) {
410
+ window.scrollTo(0, 0);
411
+ }
408
412
  }
409
413
 
410
414
  // since the content body is set to a height of 0 when the sidebar is open, we need to reset the sidebarOpen state when the window is resized