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

Function shouldUpdateValue

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

Source from the content-addressed store, hash-verified

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