@salesforcedevs/docs-components 1.3.120-alpha.1 → 1.3.120-alpha.3
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
|
@@ -405,6 +405,11 @@ export default class ContentLayout extends LightningElement {
|
|
|
405
405
|
|
|
406
406
|
private onToggleSidebar(e: CustomEvent): void {
|
|
407
407
|
this.sidebarOpen = e.detail.open;
|
|
408
|
+
|
|
409
|
+
window.scrollTo(0, 0);
|
|
410
|
+
document.querySelector("dx-footer").style.display = this.sidebarOpen
|
|
411
|
+
? "none"
|
|
412
|
+
: "block";
|
|
408
413
|
}
|
|
409
414
|
|
|
410
415
|
// 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
|