Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
jenjen75 opened this issue Oct 9, 2021 · 0 comments
Closed
Labels
🐞 bug Something isn't working scope: custom elements

Comments

@jenjen75
Copy link

jenjen75 commented Oct 9, 2021

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"}

@yyx990803 yyx990803 added 🐞 bug Something isn't working scope: custom elements labels Oct 9, 2021
@github-actions github-actions bot locked and limited conversation to collaborators Oct 9, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
🐞 bug Something isn't working scope: custom elements
Projects
None yet
Development

No branches or pull requests

2 participants