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

Function mustUseProp

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected