ion-datetime-picker icon indicating copy to clipboard operation
ion-datetime-picker copied to clipboard

No way to go back from month picker on iOS

Open arshad104 opened this issue 7 years ago • 11 comments

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

arshad104 avatar Mar 23 '17 16:03 arshad104

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?

katemihalikova avatar Mar 23 '17 17:03 katemihalikova

Hi,

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

arshad104 avatar Mar 25 '17 18:03 arshad104

Any update on this?

arshad104 avatar Mar 28 '17 14:03 arshad104

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?

katemihalikova avatar Mar 28 '17 14:03 katemihalikova

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.

arshad104 avatar Mar 28 '17 16:03 arshad104

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?

katemihalikova avatar Mar 28 '17 16:03 katemihalikova

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

rohamak avatar May 06 '17 17:05 rohamak

@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.

katemihalikova avatar May 09 '17 07:05 katemihalikova

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.

rohamak avatar May 09 '17 14:05 rohamak

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 avatar Oct 30 '18 14:10 mydoal

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

mydoal avatar Oct 30 '18 14:10 mydoal