-
-
Notifications
You must be signed in to change notification settings - Fork 8.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
v-model.lazy does not update DOM element when it has focus after Vue model change #5875
Comments
AFAIK.
If it is not your case. Please, do elaborate more. |
My problem is when the source of the update is not in the input element (e.g. slider in my example in the reproductioin link), but in the JavaScript state that is bound to it using |
this example better shows the issue. |
Version
3.2.33
Reproduction link
sfc.vuejs.org/
Steps to reproduce
Within 5 seconds of the page loading, move the slider to any non-zero value (which makes sure the slider has DOM focus). After 5 seconds, timer will internally change the ref level to 0
What is expected?
Both the text to the left AND the slider go to 0 after 5 seconds
What is actually happening?
The text to the left goes to 0, but the slider remains where it was last dragged to
If the slider doesn't have focus (e.g. we don't move in in the 5 second window after page load), the slider also correctly goes to 0. I have traced the bug to line 10436 of https://unpkg.com/[email protected]/dist/vue.esm-browser.js (the "if (lazy) {return}" section)
The text was updated successfully, but these errors were encountered: