Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Datetime display errors in iOS 8.x #7319

Closed
mhartington opened this issue Jul 14, 2016 · 4 comments
Closed

Datetime display errors in iOS 8.x #7319

mhartington opened this issue Jul 14, 2016 · 4 comments
Milestone

Comments

@mhartington
Copy link
Contributor

Short description of the problem:

Datetime columns are displayed incorrectly running iOS 8x

simulator screen shot jul 14 2016 11 55 54 am

Steps to reproduce:

  1. ionic start tmp blank --v2 && cd tmp
  2. add the following markup to home.html
  <ion-list>
    <ion-item>
      <ion-label>Date</ion-label>
      <ion-datetime displayFormat="MM/DD/YYYY" [(ngModel)]="myDate"></ion-datetime>
    </ion-item>
  </ion-list>
  1. Build and deploy to iOS8 device or simulator

Other information: (e.g. stacktraces, related issues, suggestions how to fix, stackoverflow links, forum links, etc)
https://forum.ionicframework.com/t/ionic-2-datetime-component-issue-on-ion-8-3-1/56814/4

Which Ionic Version? 1.x or 2.x
2.x, nightly

Plunker that shows an example of your issue

Device only issue. Use commands provided above.

@mhartington
Copy link
Contributor Author

mhartington commented Jul 14, 2016

Looking into it, seems that inline styles are not getting applied.

In iOS9/10 renders out the correct styles.

<button category="picker-opt" type="button" class="disable-hover picker-opt picker-opt-default picker-opt-selected" ng-reflect-category="picker-opt" style="transform: rotateX(0deg) translate3d(0px, 0px, 90px);"><span class="button-inner">

Where ios8 only renders

<button category="picker-opt" type="button" class="disable-hover picker-opt picker-opt-default" ng-reflect-category="picker-opt"><span class="button-inner">

Possibly due to this line

@mkuffo
Copy link

mkuffo commented Jul 14, 2016

I am having the same issue. Please, let me know if there is any work around for now.

@chris-hammons
Copy link

Is there a possible work around for this? Our app has the same issue and we need to support ios 8.x and above.

lennykean added a commit to lennykean/ionic that referenced this issue Jul 15, 2016
@lennykean
Copy link
Contributor

It looks like ios8 needs the -webkit- css properties for transform and transform duration. I created a pull request where I added these

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

No branches or pull requests

6 participants