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

Function shouldUpdateValue

static/vuejs/vue.runtime.common.js:5514–5524  ·  view source on GitHub ↗
(
  elm,
  vnode,
  checkVal
)

Source from the content-addressed store, hash-verified

5512
5513
5514function shouldUpdateValue (
5515 elm,
5516 vnode,
5517 checkVal
5518) {
5519 return (!elm.composing && (
5520 vnode.tag === 'option' ||
5521 isDirty(elm, checkVal) ||
5522 isInputChanged(elm, checkVal)
5523 ))
5524}
5525
5526function isDirty (elm, checkVal) {
5527 // 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