-
Notifications
You must be signed in to change notification settings - Fork 13.5k
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
bug: ion-datetime with a min/max does not update valid values on first picker change #12319
Comments
I can make a pull request with the fix I outlined in the issue, but I'm not sure what the intended behavior of picker-column is |
It's been more than 2 weeks. Bump |
I have a fix for this that we've been using for months now without issue. I'm happy to make a pull request. I was hoping to first get some info on the intended behavior from the core dev team but I can also just make the request. |
Hey @eisene can you please share your solution ? Edit: Found the commit Bug fix commit Thank you, will test it. Edit 2: worked with no problems, i just tested with a ion-datetime no other pickers. |
Cool. Very busy for a bit, will try to make a pull request end of next week. |
Hey @eisene were you planning on creating the PR? If not I'm going to send one (and I'll just credit you with the fix in the PR). |
I pushed up a PR and credited you there (linked above). If you find the time, feel free to open your own PR and I'll close mine, so that you get some cool points on github if it gets accepted. |
PR works for me also, Thanks |
I see that the PR above was closed. So I guess this is not going to be fixed? |
I've created a new PR for v4 with the same fix: #14329 |
This issue has been automatically identified as an Ionic 3 issue. We recently moved Ionic 3 to its own repository. I am moving this issue to the repository for Ionic 3. Please track this issue over there. If I've made a mistake, and if this issue is still relevant to Ionic 4, please let the Ionic Framework team know! Thank you for using Ionic! |
Issue moved to: ionic-team/ionic-v3#304 |
Ionic version: (check one with "x")
[ ] 1.x (For Ionic 1.x issues, please use https://github.com/ionic-team/ionic-v1)
[ ] 2.x
[x] 3.x
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:
Expected behavior:
The valid days and months should update at step 4
Steps to reproduce:
http://plnkr.co/edit/eHapiVZtvMqjjsTJT9Hs?p=preview
Related code:
Other information:
This is being caused by the logic in component/picker/picker-column.ts:
This prevents ionChange from firing the first time a picker column changes. The DateTime subscribes to this event in order to update the valid values of the picker columns. I tried making ionChange fire in both cases, can confirm it fixes the problem. I'm using a fork with this fix in my app and am not experiencing any other problems.
It's also what's causing #12070.
Ionic info: (run
ionic info
from a terminal/cmd prompt and paste output below):The text was updated successfully, but these errors were encountered: