katemihalikova / ion-datetime-picker

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

Editing Minute Input field not behaving as in demo - Very weird Behaviour #51

Closed MayankLogiciel closed 8 years ago

MayankLogiciel commented 8 years ago

First of all, Thanks for this awesome plugin.

The issue i am facing is easily understandable as below. I have not tested this issue on iOS yet. But on android i am facing this issue each time and on different devices with different android versions. I am also not facing this issue on desktop browser when running app through 'ionic serve' command.

  1. I opened time picker and tap on minute input field, My cursor is in last position. 1
  2. I typed number 7 as in below screenshot

2

  1. Then i typed number 8 and suddenly before i can see '078' it changed to some garbage value as in below screenshot and stays as it is and after focus out it changed to '07'. It behaves similar if i try to type number below '60' and doesn't work at all as expected.

3

I have tried your demo on multiple devices and also on ionic view app and demo works perfectly. But It doesn't work on my android devices and tablet.

The one major and main thing that is different in my android build is webview.

I am neither using default 'webview' nor 'crosswalk'. Instead i am using' webview+' provided by Cocoon.io and is only avaiable through Cloud Build and not as open source plugin.

What could be reason 'webview+' or some timing related issues in plugin code(less likely for me) or something else?

Can you pls provide your valuable feedback or solution for this issue?

katemihalikova commented 8 years ago

Hi Mayank, thanks for your interest in the plugin!

Unfortunately I don't know what's going on here. You can try these:

Unfortunately, as I have no access to webview+, you have to do the debugging yourself.

MayankLogiciel commented 8 years ago

Thanx for your reply.

I will try as you suggested.. But i am confused how to put these console.log statements in a minified plugin file i am including and theres no unminified version for the plugin file in release folder.

I will provide you logs tomorrow..

katemihalikova commented 8 years ago

Feel free to use the src folder files instead. Thanks!

MayankLogiciel commented 8 years ago

I debugged as suggested. Pls find comments along with logs. It still shows garbage value.

err2

katemihalikova commented 8 years ago

Thanks for your help! It seems that your webview sets the input as invalid and its model is set empty, although all other browsers don't do this and still provide the wrong value to be changed.

I'm not able to do anything with that, but I'm going to make the time input elements more simple in the next version to prevent some other issues, stay tuned!