You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey, I'm trying out the material radio buttons within a Vue.js project. Applying v-model to a component means that it receives the prop modelValue which these buttons do not understand because it is not a standard attribute. https://v3.vuejs.org/guide/migration/v-model.html#overview
The best I could come up with to get a round this problem is to avoid v-model altogether
So I've jettisoned any two-way data binding. I'm new to Vue so even without any change to the material button, a suggestion of how to better handle the binding would be welcome
The text was updated successfully, but these errors were encountered:
Thanks for the issue! v-model doesn't support all web components directly (vuejs/vue#7830) since it expects a specific non-native pattern to be followed for custom elements.
Instead, you can directly bind to the property and event, like you are doing in your template (though the correct event to listen to is the change event). That's the correct recommendation for two-way data binding!
You can also use Vue 3's shorthand :prop and @event syntax instead of v-on and v-bind:
Hey, I'm trying out the material radio buttons within a Vue.js project. Applying v-model to a component means that it receives the prop modelValue which these buttons do not understand because it is not a standard attribute. https://v3.vuejs.org/guide/migration/v-model.html#overview
The best I could come up with to get a round this problem is to avoid v-model altogether
So I've jettisoned any two-way data binding. I'm new to Vue so even without any change to the material button, a suggestion of how to better handle the binding would be welcome
The text was updated successfully, but these errors were encountered: