diff --git a/coverage/index.html b/coverage/index.html index 4e4b525da40..6c3e679bc3b 100644 --- a/coverage/index.html +++ b/coverage/index.html @@ -23,30 +23,30 @@
import type { HasFocus } from 'roosterjs-content-model-types'; @@ -90,8 +90,8 @@All files / packag * @returns True if the editor has focus, otherwise false */ export const hasFocus: HasFocus = core => { - const activeElement = core.contentDiv.ownerDocument.activeElement; - return !!(activeElement && core.contentDiv.contains(activeElement)); + const activeElement = core.logicalRoot.ownerDocument.activeElement; + return !!(activeElement && core.logicalRoot.contains(activeElement)); };