1
0
Fork 0
mirror of https://github.com/documize/community.git synced 2025-07-21 22:29:41 +02:00

fixed bug with initial jump to page scrolling

This commit is contained in:
Harvey Kandola 2017-12-14 16:50:30 +00:00
parent 6f1b0564e2
commit dd45a67537

View file

@ -39,9 +39,9 @@ export default Component.extend(NotifierMixin, {
this.set('showToc', is.not.undefined(this.get('pages')) && this.get('pages').get('length') > 0); this.set('showToc', is.not.undefined(this.get('pages')) && this.get('pages').get('length') > 0);
if (is.not.null(this.get('currentPageId'))) { // if (is.not.null(this.get('currentPageId'))) {
this.send('onEntryClick', this.get('currentPageId')); // this.send('onEntryClick', this.get('currentPageId'));
} // }
this.setState(this.get('currentPageId')); this.setState(this.get('currentPageId'));
}, },