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 String will be parsed to a Number #4439

Closed
alex-w0 opened this issue Aug 25, 2021 · 1 comment
Closed

Custom element - Prop String will be parsed to a Number #4439

alex-w0 opened this issue Aug 25, 2021 · 1 comment

Comments

@alex-w0
Copy link

alex-w0 commented Aug 25, 2021

Version

3.2.6

Reproduction link

https://codesandbox.io/s/black-butterfly-egj7x?file=/src/main.js

Steps to reproduce

  1. Create a defineCustomElement with two props (language, externalId) from type String
  2. Insert the custom element into a html page and define the attributes as follows:

language="de" externalid="4332cdd-3243443d22"
3. The prop externalId is parsed to a number and contains the value 4332

What is expected?

The prop from type String should not be parsed to a number and the component should receive the exact same value

What is actually happening?

The prop externalId from type String is automatically parsed to a number

@edison1105
Copy link
Member

duplicate of #4370

@github-actions github-actions bot locked and limited conversation to collaborators Oct 13, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants