-
-
Notifications
You must be signed in to change notification settings - Fork 8.9k
Closed
Description
Version
3.0.0-beta.10
Reproduction link
https://jsfiddle.net/kjugi/ftz7xyo2/
Steps to reproduce
- Have child component with
v-bind="$attrs"
- Initialize it in parent component with
v-model="someField"
- Type inside input text
- Should update input value itself and print value in the variable on parent component
- Click button to clear value from input and parent component variable
Also, I saw an RFC for this update and not sure is it working in a new way
What is expected?
v-model updates on both sides and we don't need to emit any value or trigger value by additional props
I've achieved it here but I think that's not how it should look like
What is actually happening?
Without manual emit update passed we are not able to fill the input. In the second step when we want to clear input we need to pass new value prop which updates the input value
p3k and hungpt98
Metadata
Metadata
Assignees
Labels
No labels