Skip to content
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-text-field v-model lazy doesn't work #1810

Closed
geertolaerts opened this issue Sep 19, 2017 · 3 comments

Comments

@geertolaerts
Copy link

@geertolaerts geertolaerts commented Sep 19, 2017

Steps to reproduce

Create a v-text-field with a v-model and add the lazy modifier

Versions

Vue: 2.4.4
Vuetify: 0.15.7

What is expected ?

The model is only updated on the change event and not the input event

What is actually happening ?

The model seem to be updated on the input event

Reproduction Link

https://codepen.io/anon/pen/WZrBMW

@KaelWD

This comment has been minimized.

Copy link
Member

@KaelWD KaelWD commented Sep 19, 2017

v-model modifiers don't work on custom components in Vue: vuejs/vue#5743
You have to do it manually with an event listener: https://codepen.io/anon/pen/zErVJj?editors=1011

https://vuejs.org/v2/guide/components.html#Form-Input-Components-using-Custom-Events

@geertolaerts

This comment has been minimized.

Copy link
Author

@geertolaerts geertolaerts commented Sep 19, 2017

Aight, didn't know this. The change gets triggered twice though. The first time only once, but if i change it again and click outside it, the update seems to be triggered twice. Is this normal?

@lock

This comment has been minimized.

Copy link

@lock lock bot commented Apr 15, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. Please direct any non-bug questions to our Discord

@lock lock bot locked as resolved and limited conversation to collaborators Apr 15, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
3 participants
You can’t perform that action at this time.