Skip to content
This repository has been archived by the owner on May 12, 2018. It is now read-only.

Issue with ng-blur directive #185

Open
klapouchy90 opened this issue Mar 2, 2017 · 1 comment
Open

Issue with ng-blur directive #185

klapouchy90 opened this issue Mar 2, 2017 · 1 comment

Comments

@klapouchy90
Copy link

Using ng-change with the picker works as expected, i.e. the function gets called each time when the value changes:
<mdp-date-picker ng-model="..." ng-change="someFunction()"></mdp-date-picker>

Although, this event may get called a lot of times, especially when user will start using the arrows, mouse scroll etc. to change the value. So if upon that change I need to make a server request to check something, I used to use ng-blur event, i.e. to do it after the element loses focus:
<mdp-date-picker ng-model="..." ng-blur="someFunction()"></mdp-date-picker>

Unfortunately, the function defined in ng-blur directive gets never called.

@PawelOwczarekFalcon
Copy link

I need this feature too

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

No branches or pull requests

2 participants