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 does not allow to select 31 day of a month #14233

Closed
JStumpp opened this issue Mar 26, 2018 · 9 comments

Comments

Projects
None yet
7 participants
@JStumpp
Copy link

commented Mar 26, 2018

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>

@ionitron-bot ionitron-bot bot added the triage label Mar 26, 2018

@kondrekat

This comment has been minimized.

Copy link

commented Mar 28, 2018

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.

@RHinderiks

This comment has been minimized.

Copy link

commented Aug 23, 2018

Same here

1 similar comment
@warntjo

This comment has been minimized.

Copy link

commented Aug 23, 2018

Same here

@paulstelzer

This comment has been minimized.

Copy link
Collaborator

commented Dec 3, 2018

Is this still a bug in beta.17?

@paulstelzer paulstelzer added needs: reply and removed triage labels Dec 3, 2018

@RHinderiks

This comment has been minimized.

Copy link

commented Dec 4, 2018

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

@ionitron-bot ionitron-bot bot added triage and removed needs: reply labels Dec 4, 2018

@paulstelzer paulstelzer added needs: reply and removed triage labels Dec 4, 2018

@RHinderiks

This comment has been minimized.

Copy link

commented Dec 4, 2018

@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

@brylie

This comment has been minimized.

Copy link

commented Jan 22, 2019

Same here on Firefox for Android.

@liamdebeasi

This comment has been minimized.

Copy link
Member

commented Feb 12, 2019

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!

@ionitron-bot

This comment has been minimized.

Copy link

commented Mar 14, 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 14, 2019

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
You can’t perform that action at this time.