Skip to content

bug: prevent ion-datetime selected value to be updated #20016

@loopezz

Description

@loopezz

Bug Report

Ionic version:

[x] 4.x

Current behavior:
Updating the value while the picker is presented does also update the selected value within the picker.

Expected behavior:
The selected value should not be updated due to bad UX. It resets the user input.

  • Do update current datetime which is visible in the UI list;
  • Don't update current selected value while the picker is presented

Steps to reproduce:
Just select a custom time.

Related code:
https://stackblitz.com/edit/ionic-v4-angular-tabs-qnrfsw

insert short code snippets here

Other information:
Expected behavior is the same behavior as selecting datetime on iOS.

Ionic info:

insert the output from ionic info here

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