}
const { tag } = node
+ const isCustomElement = context.isCustomElement(tag)
if (
tag === 'input' ||
tag === 'textarea' ||
tag === 'select' ||
- context.isCustomElement(tag)
+ isCustomElement
) {
let directiveToUse = V_MODEL_TEXT
let isInvalidType = false
- if (tag === 'input') {
+ if (tag === 'input' || isCustomElement) {
const type = findProp(node, `type`)
if (type) {
if (type.type === NodeTypes.DIRECTIVE) {
}
} else if (tag === 'select') {
directiveToUse = V_MODEL_SELECT
- }
- {
- // textarea or custom elements
+ } else {
+ // textarea
__DEV__ && checkDuplicatedValue()
}
// inject runtime directive