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

Function shouldUpdateValue

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

Source from the content-addressed store, hash-verified

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