@progress/kendo-react-common
Version:
React Common package delivers common utilities that can be used with the KendoReact UI components. KendoReact Common Utilities package
19 lines (18 loc) • 692 B
JavaScript
/**
* @license
*-------------------------------------------------------------------------------------------
* Copyright © 2025 Progress Software Corporation. All rights reserved.
* Licensed under commercial license. See LICENSE.md in the package root for more information
*-------------------------------------------------------------------------------------------
*/
const c = (t) => {
const e = t.shadowRoot, n = t.contentDocument;
return e && e.activeElement ? c(e.activeElement) : n && n.activeElement ? c(n.activeElement) : t;
}, o = (t) => {
if (!(!t || !t.activeElement))
return c(t.activeElement);
};
export {
o as getActiveElement,
c as getInnerActiveElement
};