Merge pull request #4827 from qburst/4824--fix-console-log-errors-in-inplace

fix: primevue#4824
pull/4837/head
Tuğçe Küçükoğlu 2023-11-16 17:36:17 +03:00 committed by GitHub
commit 4223a8f895
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -40,7 +40,7 @@ const FocusTrap = BaseFocusTrap.extend('focustrap', {
: DomHandler.getFirstFocusableElement(el, this.getComputedSelector(el.$_pfocustrap_focusableselector))
: DomHandler.getFirstFocusableElement(_el);
return ObjectUtils.isNotEmpty(focusableElement) ? focusableElement : findNextFocusableElement(_el.nextSibling);
return ObjectUtils.isNotEmpty(focusableElement) ? focusableElement : _el.nextSibling && findNextFocusableElement(_el.nextSibling);
};
DomHandler.focus(findNextFocusableElement(mutation.nextSibling));