Subscribe on changes!

Failed to parse props in custom element

avatar
Aug 19th 2021

Version

3.2.4

Reproduction link

https://github.com/akibrk/custom-element-test

Steps to reproduce

Clone the repo provided

  1. npm run install

  2. npm run build:demo

  3. cd demo

  4. npx http-server

What is expected?

Value passed in as prop starting with number should not be treated as numbers unless that's the entire value.

What is actually happening?

Value passed in starting with a number is being parsed as number and rest of the value is being ignored


I was building a custom element library.