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

DatePicker min value #418

Closed
Smoke1987 opened this issue Jun 6, 2017 · 2 comments
Closed

DatePicker min value #418

Smoke1987 opened this issue Jun 6, 2017 · 2 comments

Comments

@Smoke1987
Copy link

I'm submitting a ... (check one with "x")
[x] bug report
[ ] feature request
[ ] support request => Please do not submit support requests here, use one of these channels: https://forum.ionicframework.com/ or http://ionicworldwide.herokuapp.com/

Current behavior:
Hello! There is an element - <ion-datetime>. When setting the minimum value by adding the attribute min = "2017-06-06" (for example), the following behavior is observed: 1) When you open the picker, and select a date, for example, "2017-07-04" (format -"YYYY-MM-DD"), and press "Accept" - the date is selected, there is nothing strange here, because max ="2103-12-31" (for example) 2) When you reopen picker (date value - "2017-07-04"), drag the value of the "month" one position back (previous month), click "accept" - the date is selected !!! Strange is that the date value becomes "2017-06-04"? Why? If the minimum value Does not exist min ="2017-06-06" ???
This behavior is NOT observed, if you re-open the picker, drag the value of the "month" one position forward, then back - then the min value constraint is triggered. More precisely - automatically resets the value to min value only from the second event of changing the date in the open picker.

Expected behavior:

Steps to reproduce:

Related code:

Other information:
I think, instead of enrolling in a beta tester Ionic? ))

Ionic info:

Cordova CLI: 6.5.0
Ionic Framework Version: 3.2.0
Ionic CLI Version: 2.2.1
Ionic App Lib Version: 2.2.0
Ionic App Scripts Version: 1.3.7
ios-deploy version: Not installed
ios-sim version: Not installed
OS: Windows 7
Node Version: v6.9.4
Xcode version: Not installed
@brandyscarney
Copy link
Member

Thanks for the issue! I am going to close this as a duplicate of ionic-team/ionic-framework#12070 since this is more of a framework bug, not a bug with the conference app. I was able to reproduce this.

@ionitron-bot
Copy link

ionitron-bot bot commented Sep 12, 2018

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 the Ionic Conference App, please create a new issue and ensure the template is fully filled out.

@ionitron-bot ionitron-bot bot locked and limited conversation to collaborators Sep 12, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants