MCPcopy Create free account
hub / github.com/TruthHun/BookStack / shouldUpdateValue

Function shouldUpdateValue

static/vuejs/vue.js:5956–5966  ·  view source on GitHub ↗
(
  elm,
  vnode,
  checkVal
)

Source from the content-addressed store, hash-verified

5954
5955
5956function shouldUpdateValue (
5957 elm,
5958 vnode,
5959 checkVal
5960) {
5961 return (!elm.composing && (
5962 vnode.tag === 'option' ||
5963 isDirty(elm, checkVal) ||
5964 isInputChanged(elm, checkVal)
5965 ))
5966}
5967
5968function isDirty (elm, checkVal) {
5969 // return true when textbox (.number and .trim) loses focus and its value is not equal to the updated value

Callers 1

updateDOMPropsFunction · 0.70

Calls 2

isDirtyFunction · 0.70
isInputChangedFunction · 0.70

Tested by

no test coverage detected