katemihalikova / ion-datetime-picker

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

No way to go back from month picker on iOS #104

Open arshad104 opened 7 years ago

arshad104 commented 7 years ago

Hi,

I am using this plugin, works fine in android but for iOS when I go to pick a month there is no way to get back from picker and also scrolling the picker doesn't reflects as shown in attached screenshot the selected month is "January" while it is still showing "February". What could be the fix? simulator screen shot 23-mar-2017 9 43 03 pm

katemihalikova commented 7 years ago

Hi there, Seems like you are having problems using the iOS native select interface. Although the picker is partially shown, it doesn't work with the native select in the lower part of your screen. You need to select a value by tapping it and then the picker shows the selected month. Can you try it?

arshad104 commented 7 years ago

Hi,

Thanks for your response. Yes, I tried that but it is not selecting month by tapping the picker. What should I do?

arshad104 commented 7 years ago

Any update on this?

katemihalikova commented 7 years ago

Seems working fine for me. Google suggests that this problem can occur when an app compiled for older iOS (older Xcode) is run on newer iOS. Are you compiling the app in the latest version of Xcode and running it in the latest version of iOS?

arshad104 commented 7 years ago

I am using Xcode 8 and testing it on simulator also I have test it on iPhone 7. Doesn't seem to be working on my side.

katemihalikova commented 7 years ago

Remove all content from index.html and put this there:

<select>
  <option>January</option>
  <option>February</option>
</select>

Build the app and run it on simulator or iPhone. Does the new select work or not?

rohamak commented 7 years ago

Hello, Can you make an ionic 2 version of this ? I want to use for desktops since ion-datatime-picker for ionic 2 iOS like is unusable and very difficult to use on desktops specially when using track pad it is very difficult to go from beginning to ends and vice versa. Thanks

katemihalikova commented 7 years ago

@rohamak Could you please make a new issue for that? I'm currently working on a new version of the picker that will work with both v1 and v2, but it's still not finished. However I can quickly convert current code (just simplified version of it) to v2 directive if you are interested in a quick solution.

rohamak commented 7 years ago

sure I just added a new issue. thanks, I looked at it, I think there is an injectable needed the i18n .factory and a ModalControlView to replace showPopup since the popup class does not exist in ionic 2 the way to pass templateUrl and cssClass, and a bunch ionic directive changes in the picker-popup.html. That's my guesses so there might be some other stuff as well.

mydoal commented 5 years ago

Any update on this issue? From my experience, if you select the month from the native control and THEN press the selected month in the select control in the calendar itself, the value DOES get updated. If you select the month from the native control, it does not close the native control and does not change the selection in the calendar selection box. NOTE: I'm using the v3 version.

mydoal commented 5 years ago

Can this be related to the following? https://forum.ionicframework.com/t/select-dropdown-issue-on-ios/5573

I think this might be resolved by using in the component template instead of