UNPKG

devextreme

Version:

JavaScript/TypeScript Component Suite for Responsive Web Development

17 lines (16 loc) • 551 B
/** * DevExtreme (esm/__internal/scheduler/utils/is_focus_lost.js) * Version: 26.1.6 * Build date: Fri Oct 16 2026 * * Copyright (c) 2012 - 2026 Developer Express Inc. ALL RIGHTS RESERVED * Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/ */ import { domAdapter } from "../../core/dom_adapter"; export const isFocusLost = () => { const activeElement = domAdapter.getActiveElement(); const body = domAdapter.getBody(); return !activeElement || activeElement === body || !body.contains(activeElement) };