Keyboard support to option group

pull/978/head
Cagatay Civici 2021-02-15 15:38:40 +03:00
parent 89d511b181
commit f89d755530
1 changed files with 2 additions and 2 deletions

View File

@ -253,7 +253,7 @@ export default {
let nextItem = item.nextElementSibling;
if (nextItem)
return DomHandler.hasClass(nextItem, 'p-disabled') ? this.findNextOption(nextItem) : nextItem;
return DomHandler.hasClass(nextItem, 'p-disabled') || DomHandler.hasClass(nextItem, 'p-listbox-item-group') ? this.findNextItem(nextItem) : nextItem;
else
return null;
},
@ -261,7 +261,7 @@ export default {
let prevItem = item.previousElementSibling;
if (prevItem)
return DomHandler.hasClass(prevItem, 'p-disabled') ? this.findPrevItem(prevItem) : prevItem;
return DomHandler.hasClass(prevItem, 'p-disabled') || DomHandler.hasClass(prevItem, 'p-listbox-item-group') ? this.findPrevItem(prevItem) : prevItem;
else
return null;
},