Home / Function/ sameInputType() — vue Function Reference

sameInputType() — vue Function Reference

Architecture documentation for the sameInputType() function in patch.ts from the vue codebase.

Entity Profile

Dependency Diagram

graph TD
  5f941660_3d7c_e38c_e35e_62664915e823["sameInputType()"]
  45dfcfb9_deee_5d79_9a0b_3bbcf65726c5["sameVnode()"]
  45dfcfb9_deee_5d79_9a0b_3bbcf65726c5 -->|calls| 5f941660_3d7c_e38c_e35e_62664915e823
  style 5f941660_3d7c_e38c_e35e_62664915e823 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

Called By

Frequently Asked Questions

What does sameInputType() do?
sameInputType() is a function in the vue codebase.
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