webcomponent, the passed property is true, but got an empty string ''
Version
3.2.31
Reproduction link
Steps to reproduce
refer to reproduction
What is expected?
fix the boolean property bug on webcomponent
What is actually happening?
the passed property is true, but got an empty string ''
I'm not sure we would rate this a bug as we require boolean props to be properly declared. This works fine: Playground
However we currently are not too explicit about this in the docs, which rather make it sound as if this was optional and only necessary when passing boolean props via attributes:
https://vuejs.org/guide/extras/web-components.html#props
I'll still see if we have a small bug here lurking somewhere.
Try replacing . with : , It s work. see: palyground