Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
v-model.lazy in custom component with moment instance as value does not sync when component emits 'change' #5743
Steps to reproduce
Create a custom component , accept a moment instance through a prop, clone it, modify the clone and emit the modified clone using a 'change' event. If the data has been bound to the parent through v-model.lazy, the parent's data does not update. However if it is bound with separate :value and @change , then it updates correctly.
What is expected?
The parent's value should be updated
What is actually happening?
Nothing. Parent bound data does not get updated
@posva after some simple testing, I discovered that
After inspecting the component's root element, I do see a
It would be nice to be able to check within the component if this modifier is set on v-model, and then one could change which event is being
I suppose one could create their own