-
-
Notifications
You must be signed in to change notification settings - Fork 9.1k
Closed
Labels
🔨 p3-minor-bugPriority 3: this fixes a bug, but is an edge case that only affects very specific usage.Priority 3: this fixes a bug, but is an edge case that only affects very specific usage.🐞 bugSomething isn't workingSomething isn't workingscope: custom elements
Description
Version
3.2.4
Reproduction link
https://codepen.io/pawel-golubew/pen/OJmeLvV
Steps to reproduce
- Define component
const ShowPhoneNumber = Vue.defineCustomElement({
props: {
phone: String
},
template: `<div>Phone number is: {{phone}}</div>`,
});
customElements.define('show-phone-number', ShowPhoneNumber);
- Use component
<show-phone-number phone="8-909-952-45-93"></show-phone-number>
- Show in console
[Vue warn]: Invalid prop: type check failed for prop "phone". Expected String with value "8", got Number with value 8.
at <App phone=8 > warn$1 @ vue@next:8290
What is expected?
Show number 8-909-952-45-93 as string
What is actually happening?
Show only first char string
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
🔨 p3-minor-bugPriority 3: this fixes a bug, but is an edge case that only affects very specific usage.Priority 3: this fixes a bug, but is an edge case that only affects very specific usage.🐞 bugSomething isn't workingSomething isn't workingscope: custom elements