Skip to content

Request: add v-model.lazy for components #6914

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

Closed
pdanpdan opened this issue Oct 25, 2017 · 13 comments · May be fixed by #11830
Closed

Request: add v-model.lazy for components #6914

pdanpdan opened this issue Oct 25, 2017 · 13 comments · May be fixed by #11830

Comments

@pdanpdan
Copy link
Contributor

What problem does this feature solve?

v-model for components already supports .trim and .number.
Lazy modifier support for components would make it more uniform across the platform.

What does the proposed API look like?

The only change (backwards compatible) would be to add a new property to model definition:

model: {
  prop: 'value',
  event: 'input',
  eventLazy: 'change'
}
@Mikilll94
Copy link

Is it going to be done?

@iec989
Copy link

iec989 commented Jun 18, 2019

I think a bunch of us are desperately waiting for this; mid-size forms get very slow as soon as you implement some basic VUE logic around the components, we really need this!

@Mikilll94
Copy link

Mikilll94 commented Jun 18, 2019

yeah, exactly. I have an app made with Vuetify and on larger forms instead of using v-model I am typing
:value="sth" @change="($event) => sth = $event.target.value"

It would be nicer to type just
v-model.lazy = "sth"

@wc-matteo
Copy link

I would love to have it as well!

@mrcnk
Copy link

mrcnk commented Jul 11, 2019

Also custom rules for Vuelidate need sometimes v-model.lazy, so it'd be useful not to introduce workarounds for it 🙌

@Tantawi
Copy link

Tantawi commented Nov 13, 2019

Please add this!

@danielbonifacio
Copy link

Waiting for it! Would be a great enhance on productivity 😄

@sushi2all
Copy link

sushi2all commented Jan 30, 2020

This would keep components much cleaner especially when binding to vuex data. Being able to use the .lazy modifier would allow me to keep both get and set functions in the computed properties rather than having to get the data in computed and commit the mutation with a method to be called @change. Please add!!!

@ap-arto
Copy link

ap-arto commented Mar 6, 2020

Please, add this asap 👍

@mes01
Copy link

mes01 commented Jun 5, 2020

Pleeeeeeeeeeease

@Sjoerd82
Copy link

Sjoerd82 commented Oct 8, 2020

@jjsty1e
Copy link

jjsty1e commented Jun 14, 2022

image

@SergeBayet
Copy link

SergeBayet commented Jun 21, 2022

I had the same issue. Here's my workaround :
`<div
class="
el-input el-input--small
el-input-group el-input-group--append
"

<input
size="small"
class="el-input__inner"
type="text"
@blur="checkNameRecord(index)"
autocomplete="off"
v-model.lazy="record.name"
/>

{{ "." + soa.name + "." }}
`

Hope this help

@pdanpdan pdanpdan closed this as completed Apr 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
15 participants