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

Function mustUseProp

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected