Skip to content

Commit

Permalink
minor improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
Dale Nguyen committed Mar 10, 2024
1 parent c161b83 commit ff3838b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/app/components/tieredmenu/tieredmenu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ export class TieredMenuSub {
constructor(public el: ElementRef, public renderer: Renderer2, @Inject(forwardRef(() => TieredMenu)) public tieredMenu: TieredMenu) {}

positionSubmenu() {
let sublist = this.sublistViewChild && this.sublistViewChild.nativeElement;
const sublist = this.sublistViewChild && this.sublistViewChild.nativeElement;

if (sublist) {
const parentItem = sublist.parentElement.parentElement;
Expand Down Expand Up @@ -845,7 +845,6 @@ export class TieredMenu implements OnInit, AfterContentInit, OnDestroy {

anchorElement ? anchorElement.click() : element && element.click();

const processedItem = this.visibleItems[this.focusedItemInfo().index];
if (!this.popup) {
const processedItem = this.visibleItems[this.focusedItemInfo().index];
const grouped = this.isProccessedItemGroup(processedItem);
Expand Down

0 comments on commit ff3838b

Please sign in to comment.