v-model.lazy is not updating the value of an input when it has a focus
Vue version
after 3.2.0-beta.5
Link to minimal reproduction
https://jsfiddle.net/jtsacqey/24/
Steps to reproduce
- Type Jacob into the input.
- Hit enter.
same as https://github.com/vuejs/vue/issues/8346
What is expected?
Value property of the input element should be changed to Joseph, as was the value of the name property in the Vue instance.
What is actually happening?
Value property of the input element is not being changed.
System Info
No response
Any additional comments?
The value of the input is correctly being updated when using v-model without .lazy modifier. 3.2.0-beta.4 does not have this bug. This bug occurs since 3.2.0-beta.5.
Works
Vue version
after 3.2.0-beta.5
Link to minimal reproduction
https://jsfiddle.net/jtsacqey/24/
Steps to reproduce
- Type Jacob into the input.
- Hit enter.
same as vuejs/vue#8346
What is expected?
Value property of the input element should be changed to Joseph, as was the value of the name property in the Vue instance.
What is actually happening?
Value property of the input element is not being changed.
System Info
No response
Any additional comments?
The value of the input is correctly being updated when using v-model without .lazy modifier. 3.2.0-beta.4 does not have this bug. This bug occurs since 3.2.0-beta.5.
I tested and works for me
@joaovinicius Works fine for focusout, such as tabbing and clicking elsewhere. However, if you type Jacob and press Enter, the characters in the input element will still be Jacob.
I use Google Chrome 104.0.5112.102
@joaovinicius Works fine for focusout, such as tabbing and clicking elsewhere. However, if you type Jacob and press Enter, the characters in the input element will still be Jacob.
I use Google Chrome 104.0.5112.102
No, works fine for me