-
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: initial value in ion-datetime with "time" presentation not shown #24878
Comments
Thanks for the issue. I can reproduce this behavior. This behavior changed in aacb58a according to I verified this in We do have screenshot tests for this file that should have caught this: https://github.com/ionic-team/ionic-framework/blob/main/core/src/components/datetime/test/minmax/e2e.ts. The screenshots are not full size, so this particular reproduction in the |
Thanks for the issue. Can you try the following dev build and let me know if it resolves the issue?
This dev build applies to any of our packages (Angular, React, Vue, Core). |
Thanks for the insanely fast response and fix. |
Glad to hear the issue is resolved. Feel free to continue using that build for development until this fix ships. |
Thanks for the issue. This has been resolved via #24879, and a fix will be available in an upcoming release of Ionic Framework. |
A fix has been released as part of Ionic 6.0.11. |
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. |
Prerequisites
Ionic Framework Version
Current Behavior
ion-datetime with presentation="time" and an initial value shows the wrong value ("12:00 AM") until you interact with the component (click in the video).
https://user-images.githubusercontent.com/5701519/156773032-af44b34f-cf27-48e3-8bc5-86c513303cd5.mp4
Expected Behavior
The datetime component with presentation="time" should initially show the time passed via "value" attribute.
Steps to Reproduce
<ion-datetime presentation="time" [value]="'16:23'"></ion-datetime>
Code Reproduction URL
https://github.com/sburnicki/ionic-bug-datetime-time-initial-value
Ionic Info
Additional Information
No response
The text was updated successfully, but these errors were encountered: