@fluentui/dom-utilities
Version:
DOM utilities for use within Fluent web components
12 lines • 407 B
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
exports.getActiveElement = void 0;
var getActiveElement = function (doc) {
var ae = doc.activeElement;
while (ae === null || ae === void 0 ? void 0 : ae.shadowRoot) {
ae = ae.shadowRoot.activeElement;
}
return ae;
};
exports.getActiveElement = getActiveElement;
//# sourceMappingURL=getActiveElement.js.map
;