@salesforcedevs/docs-components 0.68.1 → 0.68.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": "0.68.
|
|
3
|
+
"version": "0.68.2",
|
|
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": "15e09ed86a911009655e02d9b69a4b9c7407fa71"
|
|
28
28
|
}
|
|
@@ -204,7 +204,7 @@ export default class AmfReference extends LightningElement {
|
|
|
204
204
|
}
|
|
205
205
|
|
|
206
206
|
restoreScroll() {
|
|
207
|
-
document.body.scrollTop = document.documentElement.scrollTop = window.history.state?.scrollValue
|
|
207
|
+
document.body.scrollTop = document.documentElement.scrollTop = window.history.state?.scrollValue;
|
|
208
208
|
}
|
|
209
209
|
|
|
210
210
|
renderedCallback(): void {
|
|
@@ -845,7 +845,6 @@ export default class AmfReference extends LightningElement {
|
|
|
845
845
|
*/
|
|
846
846
|
protected onApiNavigationChanged(): void {
|
|
847
847
|
this.saveScroll();
|
|
848
|
-
document.body.scrollTop = document.documentElement.scrollTop = 0;
|
|
849
848
|
|
|
850
849
|
const specBasedReference = this.isSpecBasedReference(
|
|
851
850
|
this._currentReferenceId
|
|
@@ -1275,7 +1274,6 @@ export default class AmfReference extends LightningElement {
|
|
|
1275
1274
|
|
|
1276
1275
|
onNavSelect(event: CustomEvent): void {
|
|
1277
1276
|
this.saveScroll();
|
|
1278
|
-
document.body.scrollTop = document.documentElement.scrollTop = 0;
|
|
1279
1277
|
|
|
1280
1278
|
const name = event.detail.name;
|
|
1281
1279
|
if (name) {
|
|
@@ -158,7 +158,7 @@ export default class ContentLayout extends LightningElement {
|
|
|
158
158
|
}
|
|
159
159
|
|
|
160
160
|
restoreScroll() {
|
|
161
|
-
document.body.scrollTop = document.documentElement.scrollTop = window.history.state
|
|
161
|
+
document.body.scrollTop = document.documentElement.scrollTop = window.history.state?.scrollValue;
|
|
162
162
|
}
|
|
163
163
|
|
|
164
164
|
clearRenderObserverTimer = () => {
|