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

debounce on input change, but immediate on blur #228

Open
henebb opened this issue Jun 2, 2016 · 4 comments
Open

debounce on input change, but immediate on blur #228

henebb opened this issue Jun 2, 2016 · 4 comments

Comments

@henebb
Copy link

henebb commented Jun 2, 2016

Hi!

It would be great to have the same functionality as in angular 1: https://docs.angularjs.org/api/ng/directive/ngModelOptions That is: ng-model-options="{ updateOn: 'default blur', debounce: { 'default': 500, 'blur': 0 } }"

The use case is that we want a debounce delay when typing (on e.g. input fields) but an immediate update on blur.

@henebb henebb changed the title debounce on input cahnge, but immediate on blur debounce on input change, but immediate on blur Jun 2, 2016
@bondib
Copy link

bondib commented Mar 9, 2017

+1

@Alexander-Taran
Copy link

well debounce does not know about events
updateTrigger is very trigger happy..

the way I see it is there can be another behavior combining the two.. but its kinda not dry
and not separated.. definitly doable though..

plugin?

@Alexander-Taran
Copy link

I guess rx from events or something should do the trick

@EisenbergEffect can be closed

@EisenbergEffect
Copy link
Contributor

I'm pretty sure that a custom binding behavior could be written to do this. If someone wanted to submit a PR to the current debounce behavior to add that as a setting, we could do that too. This one is definitely worth adding to the vNext. Something for @fkleuver to consider to make sure it's possible in vNext. Also, maybe @bigopon would be interested in implementing it. He's been shoring up some of the missing behaviors in vNext.

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

No branches or pull requests

5 participants