Skip to content

Commit

Permalink
Merge pull request #4827 from qburst/4824--fix-console-log-errors-in-…
Browse files Browse the repository at this point in the history
…inplace

fix: primevue#4824
  • Loading branch information
tugcekucukoglu authored Nov 16, 2023
2 parents 7bb555d + 8764814 commit 4223a8f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/lib/focustrap/FocusTrap.js
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down

0 comments on commit 4223a8f

Please sign in to comment.