From 31bbf4ba1b353e0ad8537d2ffd0ffe61dd64735a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tu=C4=9F=C3=A7e=20K=C3=BC=C3=A7=C3=BCko=C4=9Flu?= Date: Thu, 25 May 2023 16:56:11 +0300 Subject: [PATCH] Refactor #3965 - For Listbox --- components/lib/listbox/Listbox.vue | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/components/lib/listbox/Listbox.vue b/components/lib/listbox/Listbox.vue index 088b8ec9e..dd70f8922 100755 --- a/components/lib/listbox/Listbox.vue +++ b/components/lib/listbox/Listbox.vue @@ -88,10 +88,10 @@ {{ getOptionLabel(option) }} -
  • +
  • {{ emptyFilterMessageText }}
  • -
  • +
  • {{ emptyMessageText }}
  • @@ -203,7 +203,7 @@ export default { onFirstHiddenFocus() { DomHandler.focus(this.list); - const firstFocusableEl = DomHandler.getFirstFocusableElement(this.$el, ':not(.p-hidden-focusable)'); + const firstFocusableEl = DomHandler.getFirstFocusableElement(this.$el, ':not([data-p-hidden-focusable="true"])'); this.$refs.lastHiddenFocusableElement.tabIndex = ObjectUtils.isEmpty(firstFocusableEl) ? -1 : undefined; this.$refs.firstHiddenFocusableElement.tabIndex = -1; @@ -212,7 +212,7 @@ export default { const relatedTarget = event.relatedTarget; if (relatedTarget === this.list) { - const firstFocusableEl = DomHandler.getFirstFocusableElement(this.$el, ':not(.p-hidden-focusable)'); + const firstFocusableEl = DomHandler.getFirstFocusableElement(this.$el, ':not([data-p-hidden-focusable="true"])'); DomHandler.focus(firstFocusableEl); this.$refs.firstHiddenFocusableElement.tabIndex = undefined;