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