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

Function shouldUpdateValue

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

Source from the content-addressed store, hash-verified

5958
5959
5960function shouldUpdateValue (
5961 elm,
5962 vnode,
5963 checkVal
5964) {
5965 return (!elm.composing && (
5966 vnode.tag === 'option' ||
5967 isDirty(elm, checkVal) ||
5968 isInputChanged(elm, checkVal)
5969 ))
5970}
5971
5972function isDirty (elm, checkVal) {
5973 // 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