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

Function shouldUpdateValue

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

Source from the content-addressed store, hash-verified

5506
5507
5508function shouldUpdateValue (
5509 elm,
5510 vnode,
5511 checkVal
5512) {
5513 return (!elm.composing && (
5514 vnode.tag === 'option' ||
5515 isDirty(elm, checkVal) ||
5516 isInputChanged(elm, checkVal)
5517 ))
5518}
5519
5520function isDirty (elm, checkVal) {
5521 // 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