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

Function mustUseProp

static/vuejs/vue.runtime.js:4172–4179  ·  view source on GitHub ↗
(tag, type, attr)

Source from the content-addressed store, hash-verified

4170// attributes that should be using props for binding
4171var acceptValue = makeMap('input,textarea,option,select');
4172var mustUseProp = function (tag, type, attr) {
4173 return (
4174 (attr === 'value' && acceptValue(tag)) && type !== 'button' ||
4175 (attr === 'selected' && tag === 'option') ||
4176 (attr === 'checked' && tag === 'input') ||
4177 (attr === 'muted' && tag === 'video')
4178 )
4179};
4180
4181var isEnumeratedAttr = makeMap('contenteditable,draggable,spellcheck');
4182

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected