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
  ba11f329_5ed3_3b31_8065_b8457a568973["shouldUpdateValue()"]
  499981ef_61ac_579c_c134_3ae2dc9cdf2c["dom-props.ts"]
  ba11f329_5ed3_3b31_8065_b8457a568973 -->|defined in| 499981ef_61ac_579c_c134_3ae2dc9cdf2c
  433605e0_0d48_b27f_b193_5f701bb2ef14["updateDOMProps()"]
  433605e0_0d48_b27f_b193_5f701bb2ef14 -->|calls| ba11f329_5ed3_3b31_8065_b8457a568973
  6bbe7b59_ddbc_568a_d119_4c19d707ec3a["isNotInFocusAndDirty()"]
  ba11f329_5ed3_3b31_8065_b8457a568973 -->|calls| 6bbe7b59_ddbc_568a_d119_4c19d707ec3a
  af9ecdbc_b64b_cb7a_ce68_84f4eea903d2["isDirtyWithModifiers()"]
  ba11f329_5ed3_3b31_8065_b8457a568973 -->|calls| af9ecdbc_b64b_cb7a_ce68_84f4eea903d2
  style ba11f329_5ed3_3b31_8065_b8457a568973 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, defined in src/platforms/web/runtime/modules/dom-props.ts.
Where is shouldUpdateValue() defined?
shouldUpdateValue() is defined in src/platforms/web/runtime/modules/dom-props.ts at line 84.
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