Skip to content

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

Closed

Description

@FdezRomero

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:

Activity

  1. pwespi commented on Jun 14, 2018

    @pwespi
    Contributor

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

    Regarding this point, see #14479 and #14480.

  2. added
    package: core
    type: bug
    on Dec 8, 2018
  3. liamdebeasi commented on Feb 14, 2019

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

  4. ionitron-bot commented on Mar 16, 2019

    @ionitron-bot

    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.

  5. locked and limited conversation to collaborators on Mar 16, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    package: coretype: bug

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions