Skip to content

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

Closed

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

Activity

  1. liamdebeasi commented on Oct 29, 2021

    @liamdebeasi
    Contributor

    Thanks for the issue. This is resolved in the new datetime picker coming in Ionic 6.

    Please see https://github.com/ionic-team/ionic-framework/blob/next/BETA.md for more on how to get started with the Ionic 6 pre-release. Thanks!

  2. ionitron-bot commented on Nov 28, 2021

    @ionitron-bot

    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.

  3. locked and limited conversation to collaborators on Nov 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions