Skip to content

ion-datetime does not allow to select 31 day of a month #14233

Closed

Description

@JStumpp

Ionic version: (check one with "x")
(For Ionic 1.x issues, please use https://github.com/ionic-team/ionic-v1)
[ ] 2.x
[ ] 3.x
[x] 4.x

"@ionic/core": "0.1.5-2",

I'm submitting a ... (check one with "x")
[x] bug report
[ ] feature request

Current behavior:

The month selector prevents non-valid day of month inputs but uses an old month to determine day of month range.

Expected behavior:

Being able to select the correct day of month after changing the month.

Steps to reproduce:

Select a month with 30 days per month e.g.: Apr 30, 2018
Close with "Done"
Try to select a date with 31 days e.g. March is not possible.

Related code:

<ion-item>
  <ion-label>Date</ion-label>
  <ion-datetime></ion-datetime>
</ion-item>

Activity

  1. kondrekat commented on Mar 28, 2018

    @kondrekat

    I have same problem. But I want to add that this problem is only then I change mouth to one before or after. For example from Feb to March or from Feb to Jan but if I change from Feb to May it works in correct way.

  2. RHinderiks commented on Aug 23, 2018

    @RHinderiks

    Same here

  3. warntjo commented on Aug 23, 2018

    @warntjo

    Same here

  4. paulstelzer commented on Dec 3, 2018

    @paulstelzer
    Contributor

    Is this still a bug in beta.17?

  5. added
    needs: reply
    and removed on Dec 3, 2018
  6. RHinderiks commented on Dec 4, 2018

    @RHinderiks

    Let me check but it think so (havent seen it in the release notes. The entire date picker could use a bit of a rework to be honest

  7. added and removed
    needs: reply
    on Dec 4, 2018
  8. added
    needs: reply
    and removed on Dec 4, 2018
  9. RHinderiks commented on Dec 4, 2018

    @RHinderiks

    @paulstelzer Definitely still a bug. The selection wheel even seems to disappear now when trying to drag it into a "forbidden" date and becomes visible again when released

  10. added and removed
    needs: reply
    on Dec 4, 2018
  11. added
    package: core
    type: bug
    and removed on Dec 4, 2018
  12. brylie commented on Jan 22, 2019

    @brylie

    Same here on Firefox for Android.

  13. liamdebeasi commented on Feb 12, 2019

    @liamdebeasi
    Contributor

    Hi there,

    Thanks for the issue! I’ve added this to issue #16630 to keep track of. We’re going to close out the individual issues and address all of the Datetime issues at once. We’re not forgetting about your issue, just trying to keep them all together.

    Thanks for using Ionic!

  14. ionitron-bot commented on Mar 14, 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.

  15. locked and limited conversation to collaborators on Mar 14, 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