Fixed #4875 - Listbox: Tab key support defect when filter mode is on

pull/4879/head
tugcekucukoglu 2023-11-23 21:20:02 +03:00
parent aed4e51723
commit 094dc18713
1 changed files with 1 additions and 1 deletions

View File

@ -203,7 +203,7 @@ export default {
const firstFocusableEl = DomHandler.getFirstFocusableElement(this.$el, ':not([data-p-hidden-focusable="true"])'); const firstFocusableEl = DomHandler.getFirstFocusableElement(this.$el, ':not([data-p-hidden-focusable="true"])');
this.$refs.lastHiddenFocusableElement.tabIndex = ObjectUtils.isEmpty(firstFocusableEl) ? -1 : undefined; this.$refs.lastHiddenFocusableElement.tabIndex = DomHandler.isElement(firstFocusableEl) ? undefined : -1;
this.$refs.firstHiddenFocusableElement.tabIndex = -1; this.$refs.firstHiddenFocusableElement.tabIndex = -1;
}, },
onLastHiddenFocus(event) { onLastHiddenFocus(event) {