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-model modifiers not implemented for components #10122

Closed
y-nk opened this issue Jun 8, 2019 · 3 comments
Closed

v-model modifiers not implemented for components #10122

y-nk opened this issue Jun 8, 2019 · 3 comments

Comments

@y-nk
Copy link

y-nk commented Jun 8, 2019

Version

2.6.10

Reproduction link

https://jsfiddle.net/y_nk/Lnk709z5/3/

Steps to reproduce

  1. create a component (custom-input) implementing the basic v-model mechanism ( value prop, input event )
  2. add support for change event
  3. add .lazy modifier on the v-model directive

What is expected?

value bound in v-model should update on change event due to the lazy modifier

What is actually happening?

value is updated on input regardless of the lazy modifiers


it would be very useful to fix it to give opportunity to implement a throttled-like alternative to @input

if wont fix, as for now documentation doesn't mention that it's limited to natural dom elements :

@posva
Copy link
Member

posva commented Jun 8, 2019

Please see #6914 and #7136

@posva posva closed this as completed Jun 8, 2019
@y-nk
Copy link
Author

y-nk commented Jun 8, 2019

@posva thanks for your quick answer. any progress on the PR ? it seems ready to merge for a while...

@wc-matteo
Copy link

@posva It would be awesome if this could be merged!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants