mirror of
https://github.com/Redocly/redoc.git
synced 2025-08-08 06:04:56 +03:00
BDEVEXP-2382
* Fixed scrollbar to reset to top of it when 'jump to top' is clicked. * updated version to 20.3.2 and bundled.
This commit is contained in:
parent
7cf825c334
commit
0361aa51dc
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "otx-redoc",
|
"name": "otx-redoc",
|
||||||
"version": "20.3.1",
|
"version": "20.3.2",
|
||||||
"description": "ReDoc",
|
"description": "ReDoc",
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
|
|
|
@ -129,6 +129,10 @@ export class MenuStore {
|
||||||
itemIdx += step;
|
itemIdx += step;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (window.pageYOffset === 0) {
|
||||||
|
itemIdx = 0;
|
||||||
|
}
|
||||||
|
|
||||||
this.activate(this.flatItems[itemIdx], true, true);
|
this.activate(this.flatItems[itemIdx], true, true);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user