UNPKG

reka-ui

Version:

Vue port for Radix UI Primitives.

17 lines (15 loc) 546 B
//#region src/shared/getActiveElement.ts function getActiveElement() { let activeElement = document.activeElement; if (activeElement == null) return null; while (activeElement != null && activeElement.shadowRoot != null && activeElement.shadowRoot.activeElement != null) activeElement = activeElement.shadowRoot.activeElement; return activeElement; } //#endregion Object.defineProperty(exports, 'getActiveElement', { enumerable: true, get: function () { return getActiveElement; } }); //# sourceMappingURL=getActiveElement.cjs.map