Skip to content
This repository has been archived by the owner on Jan 19, 2022. It is now read-only.

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

Open
arshad104 opened this issue Mar 23, 2017 · 11 comments
Open

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

arshad104 opened this issue Mar 23, 2017 · 11 comments

Comments

@arshad104
Copy link

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
Copy link
Owner

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
Copy link
Author

Hi,

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

@arshad104
Copy link
Author

Any update on this?

@katemihalikova
Copy link
Owner

katemihalikova commented Mar 28, 2017

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
Copy link
Author

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
Copy link
Owner

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
Copy link

rohamak commented May 6, 2017

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
Copy link
Owner

@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
Copy link

rohamak commented May 9, 2017

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
Copy link

mydoal commented Oct 30, 2018

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
Copy link

mydoal commented Oct 30, 2018

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 BTW Great component. Thanks!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants