Skip to content

Custom Element - Prop Number is parsed as String after vue app is loaded #4772

@jenjen75

Description

@jenjen75

Version

3.2.20

Reproduction link

codesandbox.io

Steps to reproduce

  • App.vue call 2 custom elements, The first directly, and the 2nd after onMounted lifecycle.
  • Open codesandbox console.log : the first-one is correct, externalid attribute is number but the 2nd is string

What is expected?

console.log(props) : externalid is number
{booleanAttr: true, language: "de", externalid: 4339870}

What is actually happening?

console.log(props) : externalid is string
{booleanAttr: true, language: "de", externalid: "4339870"}

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions