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

Function mustUseProp

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected