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

Function mustUseProp

static/vuejs/vue.esm.js:4180–4187  ·  view source on GitHub ↗
(tag, type, attr)

Source from the content-addressed store, hash-verified

4178// attributes that should be using props for binding
4179var acceptValue = makeMap('input,textarea,option,select');
4180var mustUseProp = function (tag, type, attr) {
4181 return (
4182 (attr === 'value' && acceptValue(tag)) && type !== 'button' ||
4183 (attr === 'selected' && tag === 'option') ||
4184 (attr === 'checked' && tag === 'input') ||
4185 (attr === 'muted' && tag === 'video')
4186 )
4187};
4188
4189var isEnumeratedAttr = makeMap('contenteditable,draggable,spellcheck');
4190

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected