Home / Function/ isNotInFocusAndDirty() — vue Function Reference

isNotInFocusAndDirty() — vue Function Reference

Architecture documentation for the isNotInFocusAndDirty() function in dom-props.ts from the vue codebase.

Entity Profile

Dependency Diagram

graph TD
  70c0e805_23ef_6a6d_247a_b5f3a772c12c["isNotInFocusAndDirty()"]
  cfd60e3b_7f4b_6778_ee1c_4172f3425a17["shouldUpdateValue()"]
  cfd60e3b_7f4b_6778_ee1c_4172f3425a17 -->|calls| 70c0e805_23ef_6a6d_247a_b5f3a772c12c
  style 70c0e805_23ef_6a6d_247a_b5f3a772c12c fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

src/platforms/web/runtime/modules/dom-props.ts lines 94–104

function isNotInFocusAndDirty(elm: acceptValueElm, checkVal: string): boolean {
  // return true when textbox (.number and .trim) loses focus and its value is
  // not equal to the updated value
  let notInFocus = true
  // #6157
  // work around IE bug when accessing document.activeElement in an iframe
  try {
    notInFocus = document.activeElement !== elm
  } catch (e: any) {}
  return notInFocus && elm.value !== checkVal
}

Domain

Subdomains

Frequently Asked Questions

What does isNotInFocusAndDirty() do?
isNotInFocusAndDirty() is a function in the vue codebase.
What calls isNotInFocusAndDirty()?
isNotInFocusAndDirty() is called by 1 function(s): shouldUpdateValue.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free