mirror of
https://github.com/Redocly/redoc.git
synced 2025-02-07 13:30:33 +03:00
fix: (second chance) firefox and IE scroll sync after deps update
This commit is contained in:
parent
df4bb0a17f
commit
50acb986f1
|
@ -78,7 +78,7 @@ export class Redoc extends BaseComponent implements OnInit {
|
|||
//parse options (top level component doesn't support inputs)
|
||||
optionsMgr.parseOptions( this.element );
|
||||
let scrollParent = detectScollParent( this.element );
|
||||
if (scrollParent === (document.scrollingElement || document.body)) scrollParent = window;
|
||||
if (scrollParent === (document.scrollingElement || document.documentElement)) scrollParent = window;
|
||||
optionsMgr.options.$scrollParent = scrollParent;
|
||||
this.options = optionsMgr.options;
|
||||
this.lazyTasksService.allSync = !this.options.lazyRendering;
|
||||
|
|
Loading…
Reference in New Issue
Block a user