katemihalikova / ion-datetime-picker

Date and/or time picker for awesome Ionic framework
MIT License
169 stars 101 forks source link

Time picker increment of 2 in mobile #34

Closed kevinvavelin closed 7 years ago

kevinvavelin commented 8 years ago

Hi,

I have an issue with the framework, when I run in ionic serve everything is good, but if I run it on phonegap I have the picker who increment my step twice.

Do you have any idea why I have this issue ?

Thanks in adance for your answer

katemihalikova commented 8 years ago

Hi Kevin, Seems like there is some problem with events that are being triggered. Could you please include info about your environment, i.e. your phone model, Android version, webview version, ionic version, if touching with your finger or using a pen or a mouse etc.

kevinvavelin commented 8 years ago

Hi Kate,

I think the problem is related to Angular Material who fired the event twice. I run my app on iOS 9.3.3, Ionic 1.7.14, on web it's all good, but as soon as I am on mobile I have this problem.

I will test with remove angular-material to see if it's related and let you know about it

songjiejoy commented 8 years ago

add "$timeout(function() {……}, 50)“ to click event.