Skip to content

Commit

Permalink
#9772 Keyboard support for MultiSelect Grouping
Browse files Browse the repository at this point in the history
  • Loading branch information
yigitfindikli committed Jan 18, 2021
1 parent 1ed8f85 commit f9bda75
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/app/components/multiselect/multiselect.ts
Original file line number Diff line number Diff line change
Expand Up @@ -793,7 +793,7 @@ export class MultiSelect implements OnInit,AfterViewInit,AfterContentInit,AfterV
let nextItem = item.nextElementSibling;

if (nextItem)
return DomHandler.hasClass(nextItem.children[0], 'p-disabled') || DomHandler.isHidden(nextItem.children[0]) ? this.findNextItem(nextItem) : nextItem.children[0];
return DomHandler.hasClass(nextItem.children[0], 'p-disabled') || DomHandler.isHidden(nextItem.children[0]) || DomHandler.hasClass(nextItem, 'p-multiselect-item-group') ? this.findNextItem(nextItem) : nextItem.children[0];
else
return null;
}
Expand All @@ -802,7 +802,7 @@ export class MultiSelect implements OnInit,AfterViewInit,AfterContentInit,AfterV
let prevItem = item.previousElementSibling;

if (prevItem)
return DomHandler.hasClass(prevItem.children[0], 'p-disabled') || DomHandler.isHidden(prevItem.children[0]) ? this.findPrevItem(prevItem) : prevItem.children[0];
return DomHandler.hasClass(prevItem.children[0], 'p-disabled') || DomHandler.isHidden(prevItem.children[0]) || DomHandler.hasClass(prevItem, 'p-multiselect-item-group') ? this.findPrevItem(prevItem) : prevItem.children[0];
else
return null;
}
Expand Down

0 comments on commit f9bda75

Please sign in to comment.