@progress/kendo-angular-common
Version:
Kendo UI for Angular - Utility Package
11 lines (10 loc) • 719 B
JavaScript
/**-----------------------------------------------------------------------------------------
* Copyright © 2020 Progress Software Corporation. All rights reserved.
* Licensed under commercial license. See LICENSE.md in the project root for more information
*-------------------------------------------------------------------------------------------*/
import { findElement } from './find-element';
import { isFocusableWithTabKey } from './is-focusable-with-tab-key';
export var findFocusableChild = function (element, checkVisibility) {
if (checkVisibility === void 0) { checkVisibility = true; }
return findElement(element, function (node) { return isFocusableWithTabKey(node, checkVisibility); }, false);
};