alenaksu / mdPickers

Material Design date/time pickers for Angular Material
MIT License
293 stars 216 forks source link

Issue with ng-blur directive #185

Open klapouchy90 opened 7 years ago

klapouchy90 commented 7 years ago

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 commented 7 years ago

I need this feature too