UNPKG

@progress/kendo-angular-common

Version:
11 lines (10 loc) 719 B
/**----------------------------------------------------------------------------------------- * 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); };