Skip to content

bug: ion-datetime triggers ionChange on load #20873

@jeydsamy

Description

@jeydsamy

Bug Report

Ionic version:

[x] 5.x

Current behavior:

ion-datetime is triggering ionChange on page load

Expected behavior:

ion-datetime should trigger ionChange only after user changes the date/time

Steps to reproduce:

A sample application via GitHub
https://github.com/jeydsamy/ionic-datetime-sample

  1. Clone project from git, npm install and run with ionic serve
  2. Navigate between tabs, console will print "Date Changed!" even when it is not changed.

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