Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug: Datetime UI does not update the value after it has changed programmatically. #24241

Closed
4 of 6 tasks
NormanV41 opened this issue Nov 17, 2021 · 3 comments
Closed
4 of 6 tasks
Labels
package: core @ionic/core package type: bug a confirmed bug report v6 issues specific to Framework v6

Comments

@NormanV41
Copy link

Prerequisites

Ionic Framework Version

  • v4.x
  • v5.x
  • v6.x

Current Behavior

Datetime UI does not show that the value has changed after it changed programmatically. This issue is unique for version 6.

Expected Behavior

The Datetime UI should be updated when its value changes programmatically.

Steps to Reproduce

  • Start a new app with a blank template.
  • add a Datetime component with its value bound to a component property.
  • asynchronously update the value of the component property.
  • observe that the UI does not show that the value has changed.

Code Reproduction URL

https://github.com/NormanV41/ionic-issues-demo/tree/datetime-issue-v6

Ionic Info

[WARN] Error loading @capacitor/ios package.json: Error: Cannot find module '@capacitor/ios/package'

   Require stack:
   - /usr/lib/node_modules/@ionic/cli/lib/project/index.js
   - /usr/lib/node_modules/@ionic/cli/lib/index.js
   - /usr/lib/node_modules/@ionic/cli/index.js
   - /usr/lib/node_modules/@ionic/cli/bin/ionic

[WARN] Error loading @capacitor/android package.json: Error: Cannot find module '@capacitor/android/package'

   Require stack:
   - /usr/lib/node_modules/@ionic/cli/lib/project/index.js
   - /usr/lib/node_modules/@ionic/cli/lib/index.js
   - /usr/lib/node_modules/@ionic/cli/index.js
   - /usr/lib/node_modules/@ionic/cli/bin/ionic

Ionic:

Ionic CLI : 6.18.0 (/usr/lib/node_modules/@ionic/cli)
Ionic Framework : @ionic/angular 6.0.0-rc.3
@angular-devkit/build-angular : 12.1.4
@angular-devkit/schematics : 12.1.4
@angular/cli : 12.1.4
@ionic/angular-toolkit : 4.0.0

Capacitor:

Capacitor CLI : 3.2.5
@capacitor/android : not installed
@capacitor/core : 3.2.5
@capacitor/ios : not installed

Utility:

cordova-res : 0.15.3
native-run : 1.5.0

System:

NodeJS : v14.16.1 (/usr/bin/node)
npm : 6.14.12
OS : Linux 5.14

Additional Information

No response

@ionitron-bot ionitron-bot bot added the triage label Nov 17, 2021
@sean-perkins sean-perkins added type: bug a confirmed bug report v6 issues specific to Framework v6 labels Nov 18, 2021
@sean-perkins
Copy link
Contributor

@NormanV41 thanks for reporting this issue 👍

I've confirmed on your reproduction branch that this is an active issue. The internal value of the ion-datetime does update to the new value. You can bind to (ionChange) to see the value is emitted on change.

However, it appears the visual state does not re-render correctly; specifically around the active day (activeParts).

@sean-perkins
Copy link
Contributor

This issue has been resolved and will be available in the next release 🎉

@ionitron-bot
Copy link

ionitron-bot bot commented Dec 24, 2021

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.

@ionitron-bot ionitron-bot bot locked and limited conversation to collaborators Dec 24, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
package: core @ionic/core package type: bug a confirmed bug report v6 issues specific to Framework v6
Projects
None yet
Development

No branches or pull requests

2 participants