@salesforcedevs/docs-components 1.3.262 → 1.3.264
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.
|
|
3
|
+
"version": "1.3.264",
|
|
4
4
|
"description": "Docs Lightning web components for DSC",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "index.js",
|
|
@@ -24,5 +24,5 @@
|
|
|
24
24
|
"@types/lodash.orderby": "^4.6.7",
|
|
25
25
|
"@types/lodash.uniqby": "^4.7.7"
|
|
26
26
|
},
|
|
27
|
-
"gitHead": "
|
|
27
|
+
"gitHead": "75fca6ea2ade879a9be5838ceed9a8ca47a3cc47"
|
|
28
28
|
}
|
|
@@ -88,20 +88,12 @@ export default class AmfTopic extends LightningElement {
|
|
|
88
88
|
}
|
|
89
89
|
container?.appendChild(element as Node);
|
|
90
90
|
|
|
91
|
-
this.scrollToTop(container);
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
scrollToTop(container: Element) {
|
|
95
91
|
const isTabletOrDesktop = window.matchMedia(
|
|
96
92
|
`(min-width: ${TABLE_SIZE_MATCH})`
|
|
97
93
|
).matches;
|
|
98
94
|
|
|
99
|
-
// We need to scroll to top from the tablet size as side nav bar and content in side by side from tablet size
|
|
100
95
|
if (isTabletOrDesktop) {
|
|
101
|
-
|
|
102
|
-
requestAnimationFrame(() => {
|
|
103
|
-
container?.scrollIntoView(true);
|
|
104
|
-
});
|
|
96
|
+
window.scrollTo(0, 0);
|
|
105
97
|
}
|
|
106
98
|
}
|
|
107
99
|
|