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
  70e98871_4b2a_b2bc_e1cc_989cd42520ff["isNotInFocusAndDirty()"]
  297f96f5_ce18_dfbe_5031_c5fe5e97a7a4["dom-props.ts"]
  70e98871_4b2a_b2bc_e1cc_989cd42520ff -->|defined in| 297f96f5_ce18_dfbe_5031_c5fe5e97a7a4
  2c37b4b2_54a7_2133_4ab8_8f01183c5eea["shouldUpdateValue()"]
  2c37b4b2_54a7_2133_4ab8_8f01183c5eea -->|calls| 70e98871_4b2a_b2bc_e1cc_989cd42520ff
  style 70e98871_4b2a_b2bc_e1cc_989cd42520ff 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, defined in src/platforms/web/runtime/modules/dom-props.ts.
Where is isNotInFocusAndDirty() defined?
isNotInFocusAndDirty() is defined in src/platforms/web/runtime/modules/dom-props.ts at line 94.
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