sameInputType() — vue Function Reference
Architecture documentation for the sameInputType() function in patch.ts from the vue codebase.
Entity Profile
Dependency Diagram
graph TD 1b5c367a_1444_4201_9c24_3a2ad7bdc9d8["sameInputType()"] 020681fa_600e_5c84_6a4e_f1289077cc78["patch.ts"] 1b5c367a_1444_4201_9c24_3a2ad7bdc9d8 -->|defined in| 020681fa_600e_5c84_6a4e_f1289077cc78 6818a46b_6353_f7ba_68e1_b56cd8b066ef["sameVnode()"] 6818a46b_6353_f7ba_68e1_b56cd8b066ef -->|calls| 1b5c367a_1444_4201_9c24_3a2ad7bdc9d8 style 1b5c367a_1444_4201_9c24_3a2ad7bdc9d8 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
src/core/vdom/patch.ts lines 48–54
function sameInputType(a, b) {
if (a.tag !== 'input') return true
let i
const typeA = isDef((i = a.data)) && isDef((i = i.attrs)) && i.type
const typeB = isDef((i = b.data)) && isDef((i = i.attrs)) && i.type
return typeA === typeB || (isTextInputType(typeA) && isTextInputType(typeB))
}
Domain
Subdomains
Defined In
Called By
Source
Frequently Asked Questions
What does sameInputType() do?
sameInputType() is a function in the vue codebase, defined in src/core/vdom/patch.ts.
Where is sameInputType() defined?
sameInputType() is defined in src/core/vdom/patch.ts at line 48.
What calls sameInputType()?
sameInputType() is called by 1 function(s): sameVnode.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free