Vue version
3.5.22
Link to minimal reproduction
Playground
Steps to reproduce
-
Enter 1a in the input field
-
Notice that modelValue has been updated
-
Blur the input or press Enter
What is expected?
Like the trim modifier, update the input value when the change event is triggered.
What is actually happening?
Data and view are out of sync
System Info
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/140.0.0.0 Safari/537.36
Any additional comments?
In vue2 it works as expected.
Vue2 Playground
Vue version
3.5.22
Link to minimal reproduction
Playground
Steps to reproduce
Enter
1ain the input fieldNotice that
modelValuehas been updatedBlur the input or press Enter
What is expected?
Like the trim modifier, update the input value when the change event is triggered.
What is actually happening?
Data and view are out of sync
System Info
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/140.0.0.0 Safari/537.36Any additional comments?
In vue2 it works as expected.
Vue2 Playground