Bug in bool props in <custom-element>
Version
3.2.12
Reproduction link
https://codepen.io/catsmeatman/pen/qBjYeve
Steps to reproduce
- Define
as Vue component (Vue.defineCustomElement) - Bind some bool prop with value "true"
- Use prop in template and see value is false.
What is expected?
Prop value will bee true
What is actually happening?
Bool type is not correctly
In standard Vue component, not
Did i understand correctly? Read this doc https://v3.vuejs.org/guide/web-components.html#passing-dom-properties, that in case i must use
<test-case :test-value.prop="true"></test-case>
or <test-case .test-value="true"></test-case>
This is only possible when using custom elements inside Vue templates, because it's Vue's binding syntax.
You are not using the custom element inside a Vue template. You are using it inside plain HTML.