Ionic-framework: bug (latest beta versions): datetime only sets current datetime - not selected value

Created on 4 Dec 2019  路  4Comments  路  Source: ionic-team/ionic-framework

Bug Report

Ionic version:
[x] 5.0.0-beta.1 (and beyond)
tested on 5.0.0-beta.0 and it works
tested on 5.0.0-beta.1 and it doesn't
also tested on 5.0.0-dev.201912032102.fd4cfe7

Current behavior:

  1. Open datepicker
  2. Select Time
  3. notice the time updates to the current time.
  4. The ionChange event is fired but it looks like the value is tied to the current time (not the time picked).

Expected behavior:

  1. Open datepicker
  2. Select Time
  3. ionChange event is emitted with selected time
  4. Time updates to time chosen in picker

Steps to reproduce:
Working 5.0.0-beta.0 https://codepen.io/corysmc/pen/zYxxzBK
Not Working 5.0.0-beta.1 https://codepen.io/corysmc/pen/ExaaXEX (renders current time only)
Not Working 5.0.0-dev.201912032102.fd4cfe7 https://codepen.io/corysmc/pen/LYEELmQ

core bug

Most helpful comment

Yep that did the trick - FYI it's the latest core build - not angular that I needed:
npm i @ionic/[email protected]

Updated codepen working: https://codepen.io/corysmc/pen/LYEELmQ

Thanks @liamdebeasi and @brandyscarney!

All 4 comments

Thanks for the issue. Can you try the following dev build and let me know if it resolves the issue for you?

npm i @ionic/[email protected]

We've merged a fix in for this. If you're still experiencing issues let me know, and I'll investigate further. Thanks!

Yep that did the trick - FYI it's the latest core build - not angular that I needed:
npm i @ionic/[email protected]

Updated codepen working: https://codepen.io/corysmc/pen/LYEELmQ

Thanks @liamdebeasi and @brandyscarney!

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.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

fdnhkj picture fdnhkj  路  3Comments

giammaleoni picture giammaleoni  路  3Comments

brandyscarney picture brandyscarney  路  3Comments

alan-agius4 picture alan-agius4  路  3Comments

vswarte picture vswarte  路  3Comments