mirror of
https://github.com/Redocly/redoc.git
synced 2024-09-21 03:08:48 +03:00
fix: auth link scroll for Firerox (#1922)
This commit is contained in:
parent
059bd8000e
commit
fe67e9c332
|
@ -151,7 +151,7 @@ export class MenuStore {
|
||||||
} else {
|
} else {
|
||||||
if (id.startsWith(SECURITY_SCHEMES_SECTION_PREFIX)) {
|
if (id.startsWith(SECURITY_SCHEMES_SECTION_PREFIX)) {
|
||||||
item = this.flatItems.find(i => SECURITY_SCHEMES_SECTION_PREFIX.startsWith(i.id));
|
item = this.flatItems.find(i => SECURITY_SCHEMES_SECTION_PREFIX.startsWith(i.id));
|
||||||
this.activate(item);
|
this.activateAndScroll(item, false);
|
||||||
}
|
}
|
||||||
this.scroll.scrollIntoViewBySelector(`[${SECTION_ATTR}="${id}"]`);
|
this.scroll.scrollIntoViewBySelector(`[${SECTION_ATTR}="${id}"]`);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user