Skip to content

ionic v4 Datetime cannot have first value #14563

Closed

Description

@dmastag

Bug Report

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

cli packages: (C:\Users\julian\AppData\Roaming\npm\node_modules)

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

global packages:

   cordova (Cordova CLI) : 8.0.0

local packages:

   @angular-devkit/core       : 0.6.0
   @angular-devkit/schematics : 0.6.0
   @angular/cli               : 6.0.1
   @ionic/schematics-angular  : 1.0.0-rc.6
   Cordova Platforms          : none
   Ionic Framework            : @ionic/angular 4.0.0-alpha.7

System:

   NodeJS : v10.3.0
   npm    : 6.1.0
   OS     : Windows 10

Environment Variables:

   ANDROID_HOME : not set

Describe the Bug
When using ion-datetime, for each column if I choose the first value then it does not show anything.

Steps to Reproduce
Steps to reproduce the behavior:

  1. Use ion-datetime
  2. Fill in 01 Jan 2018 (first option for every column)
  3. Result empty (the value is from placeholder)
  4. Fill in 02 Jan 2018
  5. Only the Date is there, Month and Year are still empty

Related Code
html

<ion-datetime class="text-border" displayFormat="DD/MM/YYYY" pickerFormat="DD/MMM/YYYY" min="2000" max=2019 placeholder="dd/mm/yyyy"></ion-datetime>

Expected Behavior
That we can choose the first value for each column

Activity

  1. FdezRomero commented on Jun 6, 2018

    @FdezRomero
    Contributor

    I can also reproduce this issue with @ionic/[email protected] and the new docs (locally).

    Thanks,
    Rodrigo

  2. pwespi commented on Jun 14, 2018

    @pwespi
    Contributor

    For a possible solution, see #14479 and #14480.

  3. brandyscarney commented on Aug 14, 2018

    @brandyscarney
    Member

    Thank you for the issue! This will be fixed in the beta.3 release.

  4. ionitron-bot commented on Sep 13, 2018

    @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 Sep 13, 2018
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

    No labels
    No labels

    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