@synergy-design-system/components
Version:
This package provides the base of the Synergy Design System as native web components. It uses [lit](https://www.lit.dev) and parts of [shoelace](https://shoelace.style/). Synergy officially supports the latest two versions of all major browsers (as define
14 lines (12 loc) • 322 B
JavaScript
// src/internal/closeActiveElement.ts
var blurActiveElement = (elm) => {
var _a;
const { activeElement } = document;
if (activeElement && elm.contains(activeElement)) {
(_a = document.activeElement) == null ? void 0 : _a.blur();
}
};
export {
blurActiveElement
};
//# sourceMappingURL=chunk.WXVOTRW5.js.map