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

Ionic v4: Datetime - Can't choose dates after 2017-01-01 #14609

Closed
FdezRomero opened this issue Jun 12, 2018 · 3 comments
Closed

Ionic v4: Datetime - Can't choose dates after 2017-01-01 #14609

FdezRomero opened this issue Jun 12, 2018 · 3 comments
Labels
package: core @ionic/core package type: bug a confirmed bug report

Comments

@FdezRomero
Copy link
Contributor

FdezRomero commented Jun 12, 2018

Bug Report

Ionic Info
Run ionic info from a terminal/cmd prompt and paste the output below.

cli packages: (/usr/local/lib/node_modules)

   @ionic/cli-utils  : 2.0.0-rc.6
   ionic (Ionic CLI) : 4.0.0-rc.6

local packages:

   @angular-devkit/core       : 0.6.8
   @angular-devkit/schematics : 0.6.8
   @angular/cli               : 6.0.8
   @ionic/schematics-angular  : 1.0.0-rc.6
   Ionic Framework            : @ionic/angular 4.0.0-alpha.7

System:

   NodeJS : v8.11.1
   npm    : 6.1.0
   OS     : macOS High Sierra

Describe the Bug

  • Default date is 2017-01-01, should be today.
  • Can't choose a date after 2017-01-01, even if a max is defined.
  • Can't accept the default value when pressing "Done", it behaves the same way as "Cancel".

Steps to Reproduce
Just write an <ion-datetime> element in any page, without any special options. It can be easily replicated in Datetime page of the v4 alpha docs.

Related Code
<ion-datetime></ion-datetime>

Expected Behavior

  • Default date, without options, should be today.
  • The current year (2018) should be able to be selected by default.
  • All dates in between min and max should be able to be selected.
  • The default option for each picker (index 0) should be able to be selected when pressing "Done".

Additional Context
Related issues:

@ionitron-bot ionitron-bot bot added the triage label Jun 12, 2018
@pwespi
Copy link
Contributor

pwespi commented Jun 14, 2018

The default option for each picker (index 0) should be able to be selected when pressing "Done".

Regarding this point, see #14479 and #14480.

@liamdebeasi
Copy link
Contributor

Thanks for this issue! This has been merged in by PR #17443. It will be in the next release: 4.1.0. Please let us know if you are still seeing problems after that.

@ionitron-bot
Copy link

ionitron-bot bot commented Mar 16, 2019

Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out.

@ionitron-bot ionitron-bot bot locked and limited conversation to collaborators Mar 16, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
package: core @ionic/core package type: bug a confirmed bug report
Projects
None yet
Development

No branches or pull requests

4 participants