You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After clicking a button to change the current value, the first input (with :value="current") shows the correct value, but the second input (with v-model="current") shows the previous value instead.
What is expected?
Both v-model and :value should display the current value at all times
What is actually happening?
Inputs with v-model sometimes have a value that does not match the ref bound to it
Best I can tell this bug only happens in very specific situations where there is a :key on the component containing the inputs and watchEffect happening in a certain order
The text was updated successfully, but these errors were encountered:
Vue version
3.5.13
Link to minimal reproduction
https://play.vuejs.org/#eNqNVMFy2jAQ/ZWtLzYzxDRpT4zDBDp0pj20naa3OAfHLI4TWXKlNZAy/HtXkjEeoExPIL2nfU+7T94G07qOVw0G4yAxuS5rAoPU1CAyWdymAZk0mKSyrGqlCe6RqJSFgaVWFYTxaL9hS4QdbQslYTWFXcfLlSTcEFOSkZfhorxgWi0yQl4BJF358Su+sbirkgYwYjgZ9bjBkI1xzWVZxC9GSXa/tRXSIFdVXQrU32sqlWTzY3CIxTIh1Pqr2yPd4HC/nz9j/npm/8Vs7F4a/NBoUK8wDTqMMl0geXh+/43v1gMrtWgEsy+AP9Eo0ViPnjZr5IJt93jO7RfXUO7JLzPfEEqzv5Q1apk7x08D7v+nC1c/2P0Qf3TnUrnjLvbn938R2ILG5RDWGeXP8+USc+rGfC4DQ/czOxuFVPJ/Q45h4BYews9KhUMIZ5n2P3/Cxz0pb7RGSUxj/SgMB/Z8z0UUDeB2AlHLi1eZaJDZTt6vBnzmzIkeo+VPD/xLcX1qiJSE1dVS6TatUEp/HU5tL8S8ustFmb/uQ90KucbaCW19u2DHc+HKI1/aifKynjC+7VqwY1oyqr2JepLkaoGTsbPM9VtWGiTcagYgKWXdEJwS+F2dlFldcT5RXKhzhtEVOn6k7axjMhyufoCOMpNK3DjwEIhZf9InqG1gh7KQ/YoRmmOlSjWuX17rjsXYoKErfnjC9LPKApyIIVj04I2VjA1qS2ORLsXtZ9N5t6wobPsC5lmtDay1kgW4lnOUM/Mmc/B5c2/S32Sts7pGzXdxRiMuytfZo08k7atoSfGylIupEFHos2EvDpCts9IzH94/votJl0WBOgpd2E4o1/+gtH214z2r6JAT6rUNsTtjtY/AmwPIqhb0LY780RgFVt0zHcSk5r+bTHj05gjlT5Wd8u4vVnpEoA==
Steps to reproduce
After clicking a button to change the current value, the first input (with
:value="current"
) shows the correct value, but the second input (withv-model="current"
) shows the previous value instead.What is expected?
Both
v-model
and:value
should display the current value at all timesWhat is actually happening?
Inputs with
v-model
sometimes have a value that does not match the ref bound to itSystem Info
Any additional comments?
Best I can tell this bug only happens in very specific situations where there is a :key on the component containing the inputs and watchEffect happening in a certain order
The text was updated successfully, but these errors were encountered: