mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-09 17:02:38 +00:00
Refactor: Improve error handling
This commit is contained in:
parent
ae90cc0e34
commit
8764814a19
1 changed files with 1 additions and 1 deletions
|
@ -40,7 +40,7 @@ const FocusTrap = BaseFocusTrap.extend('focustrap', {
|
||||||
: DomHandler.getFirstFocusableElement(el, this.getComputedSelector(el.$_pfocustrap_focusableselector))
|
: DomHandler.getFirstFocusableElement(el, this.getComputedSelector(el.$_pfocustrap_focusableselector))
|
||||||
: DomHandler.getFirstFocusableElement(_el);
|
: DomHandler.getFirstFocusableElement(_el);
|
||||||
|
|
||||||
return ObjectUtils.isNotEmpty(focusableElement) ? focusableElement : _el.nextSibling ? findNextFocusableElement(_el.nextSibling) : null;
|
return ObjectUtils.isNotEmpty(focusableElement) ? focusableElement : _el.nextSibling && findNextFocusableElement(_el.nextSibling);
|
||||||
};
|
};
|
||||||
|
|
||||||
DomHandler.focus(findNextFocusableElement(mutation.nextSibling));
|
DomHandler.focus(findNextFocusableElement(mutation.nextSibling));
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue