Home / Function/ shouldUpdateValue() — vue Function Reference

shouldUpdateValue() — vue Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  d7bc95ed_392e_2e43_43b1_8fd956c82f6a["shouldUpdateValue()"]
  93bbc7dc_f58c_565c_3dab_0f5c37113e97["updateDOMProps()"]
  93bbc7dc_f58c_565c_3dab_0f5c37113e97 -->|calls| d7bc95ed_392e_2e43_43b1_8fd956c82f6a
  60858876_2917_f73e_3ad7_f5fe60a740e2["isNotInFocusAndDirty()"]
  d7bc95ed_392e_2e43_43b1_8fd956c82f6a -->|calls| 60858876_2917_f73e_3ad7_f5fe60a740e2
  c575218f_3d59_ecdc_18a0_695bc4bd1afb["isDirtyWithModifiers()"]
  d7bc95ed_392e_2e43_43b1_8fd956c82f6a -->|calls| c575218f_3d59_ecdc_18a0_695bc4bd1afb
  style d7bc95ed_392e_2e43_43b1_8fd956c82f6a fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

src/platforms/web/runtime/modules/dom-props.ts lines 84–92

function shouldUpdateValue(elm: acceptValueElm, checkVal: string): boolean {
  return (
    //@ts-expect-error
    !elm.composing &&
    (elm.tagName === 'OPTION' ||
      isNotInFocusAndDirty(elm, checkVal) ||
      isDirtyWithModifiers(elm, checkVal))
  )
}

Domain

Subdomains

Called By

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free