functional component wrapping with context.data causes v-model to update twice
See original GitHub issueVersion
2.5.16
Reproduction link
https://codepen.io/anon/pen/LrMKMg?editors=1011
Steps to reproduce
type in the input
What is expected?
'input'
should be logged once
What is actually happening?
'input'
is logged twice
Uncomment delete ctx.data.model
and it works fine
Original pen using vuetify: https://codepen.io/anon/pen/QxzXYK?editors=1011
Issue Analytics
- State:
- Created 5 years ago
- Reactions:2
- Comments:10 (6 by maintainers)
Top Results From Across the Web
Recipes to Wrap, Extend or Proxy a Vue Component - Medium
This article details some ways to create a component that extends another. We'll look at attributes, props, listeners, and slots, along with ...
Read more >Vue Js pass all context when wrapping components with ...
I solved the issue. So it looks like the names of the properties in the data object ...
Read more >Validation Provider - VeeValidate
The ValidationProvider component is a regular component that wraps your inputs and provides validation state using scoped slots .
Read more >I wrote vuex — but for React! The challenges I faced and ...
A context provider for a collection of getter contexts, wrapped in a memo() to prevent re-creating; Dynamically created context (and provider) ...
Read more >Forms - Vue Formulate
You can read and write to form values using v-model just as you would on an input. ... This makes it easy to...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Here’s my solution until this is fixed in vue:
Turns out someone was relying on
data.model.expression
, but I can’t find a way to allow that without breaking a bunch of other shit: https://github.com/vuetifyjs/vuetify/issues/4460#issuecomment-406870878