fix: auth link scroll for Firerox (#1922)

This commit is contained in:
AlexVarchuk 2022-03-14 17:49:08 +02:00 committed by GitHub
parent 059bd8000e
commit fe67e9c332
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -151,7 +151,7 @@ export class MenuStore {
} else {
if (id.startsWith(SECURITY_SCHEMES_SECTION_PREFIX)) {
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}"]`);
}