From f89d7555302b79d7d9ba98b799ad055887e4e77e Mon Sep 17 00:00:00 2001 From: Cagatay Civici Date: Mon, 15 Feb 2021 15:38:40 +0300 Subject: [PATCH] Keyboard support to option group --- src/components/listbox/Listbox.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/listbox/Listbox.vue b/src/components/listbox/Listbox.vue index d4ca84eca..f6193b046 100755 --- a/src/components/listbox/Listbox.vue +++ b/src/components/listbox/Listbox.vue @@ -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; },