Skip to content

Commit

Permalink
Merge pull request #13608 from rosenthalj/master
Browse files Browse the repository at this point in the history
Fix for issue #13390
  • Loading branch information
cetincakiroglu authored Sep 26, 2023
2 parents b7698dd + a640315 commit b1c6e60
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/app/components/contextmenu/contextmenu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1076,7 +1076,7 @@ export class ContextMenu implements OnInit, AfterContentInit, OnDestroy {
const element = DomHandler.findSingle(this.rootmenu.el.nativeElement, `li[id="${id}"]`);

if (element) {
element.scrollIntoView && element.scrollIntoView({ block: 'nearest', inline: 'start' });
element.scrollIntoView && element.scrollIntoView({ block: 'nearest', inline: 'nearest' });
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/app/components/megamenu/megamenu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -612,7 +612,7 @@ export class MegaMenu implements AfterContentInit, OnDestroy, OnInit {
const element = DomHandler.findSingle(this.rootmenu.el.nativeElement, `li[id="${id}"]`);

if (element) {
element.scrollIntoView && element.scrollIntoView({ block: 'nearest', inline: 'start' });
element.scrollIntoView && element.scrollIntoView({ block: 'nearest', inline: 'nearest' });
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/app/components/menubar/menubar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -665,7 +665,7 @@ export class Menubar implements AfterContentInit, OnDestroy, OnInit {
const element = DomHandler.findSingle(this.rootmenu.el.nativeElement, `li[id="${id}"]`);

if (element) {
element.scrollIntoView && element.scrollIntoView({ block: 'nearest', inline: 'start' });
element.scrollIntoView && element.scrollIntoView({ block: 'nearest', inline: 'nearest' });
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/app/components/panelmenu/panelmenu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -446,7 +446,7 @@ export class PanelMenuList implements OnChanges {
const element = DomHandler.findSingle(this.subMenuViewChild.listViewChild.nativeElement, `li[id="${`${this.focusedItemId}`}"]`);

if (element) {
element.scrollIntoView && element.scrollIntoView({ block: 'nearest', inline: 'start' });
element.scrollIntoView && element.scrollIntoView({ block: 'nearest', inline: 'nearest' });
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/app/components/slidemenu/slidemenu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1215,7 +1215,7 @@ export class SlideMenu implements OnInit, AfterContentInit, OnDestroy {
const element = DomHandler.findSingle(this.rootmenu.el.nativeElement, `li[id="${id}"]`);

if (element) {
element.scrollIntoView && element.scrollIntoView({ block: 'nearest', inline: 'start' });
element.scrollIntoView && element.scrollIntoView({ block: 'nearest', inline: 'nearest' });
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/app/components/tieredmenu/tieredmenu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1060,7 +1060,7 @@ export class TieredMenu implements OnInit, AfterContentInit, OnDestroy {
const element = DomHandler.findSingle(this.rootmenu.el.nativeElement, `li[id="${id}"]`);

if (element) {
element.scrollIntoView && element.scrollIntoView({ block: 'nearest', inline: 'start' });
element.scrollIntoView && element.scrollIntoView({ block: 'nearest', inline: 'nearest' });
}
}

Expand Down

1 comment on commit b1c6e60

@vercel
Copy link

@vercel vercel bot commented on b1c6e60 Sep 26, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.