Skip to content

bug (latest beta versions): datetime only sets current datetime - not selected value #20036

@corysmc

Description

@corysmc

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions