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

ion-datetime cannot handle min and max properly #7946

Closed
NoNameProvided opened this issue Sep 1, 2016 · 2 comments
Closed

ion-datetime cannot handle min and max properly #7946

NoNameProvided opened this issue Sep 1, 2016 · 2 comments

Comments

@NoNameProvided
Copy link
Contributor

Short description of the problem:

DateTime is empty (on iOS) when a min max is set within the same year.

What behavior are you expecting?

DateTime respects the min and max attributes and show the dates in the allowed range.

Steps to reproduce:

  1. Open the date-picker
  2. Realize it works totally incorrectly.
<ion-item>
  <ion-label>Date</ion-label>
  <ion-datetime displayFormat="DD MMMM" min="2017-01-15" max="2017-10-17" [(ngModel)]="myDate">
  </ion-datetime>
</ion-item>

Other information: (e.g. stacktraces, related issues, suggestions how to fix, stackoverflow links, forum links, etc)

No error in the console.

Which Ionic Version? 2.x

Plunker that shows an example of your issue

http://plnkr.co/edit/FAvwZdWaiYnx9Qif8LK4?p=preview

Run ionic info from terminal/cmd prompt: (paste output below)

ordova CLI: 6.3.1
Gulp version:  CLI version 1.2.2
Gulp local:   Local version 3.9.1
Ionic Framework Version: 2.0.0-beta.11
Ionic CLI Version: 2.0.0
Ionic App Lib Version: 2.0.0
ios-deploy version: 1.8.6 
ios-sim version: 5.0.8 
OS: Mac OS X El Capitan
Node Version: v6.3.1
Xcode version: Xcode 7.3.1 Build version 7D1014 
@jgw96
Copy link
Contributor

jgw96 commented Sep 1, 2016

Hello, thanks for opening an issue with us! I am going to be closing this issue as a duplicate of #6850.

@NoNameProvided
Copy link
Contributor Author

@jgw96 the two is not the same, my problem is that setting min max simply kill the date picker usually, and no value is present, or only a part of the value.

@ionitron-bot ionitron-bot bot locked and limited conversation to collaborators Sep 8, 2018
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

3 participants