ionic-team / ionic-framework

A powerful cross-platform UI toolkit for building native-quality iOS, Android, and Progressive Web Apps with HTML, CSS, and JavaScript.
https://ionicframework.com
MIT License
51.02k stars 13.51k forks source link

Ionic Datetime hour scroll error #22710

Closed winglovecola closed 3 years ago

winglovecola commented 3 years ago

Ionic version: [] 4.x [x] 5.x

I'm submitting a ...

[x] bug report [ ] feature request

Current behavior: the hour jump back to the top when trying the scroll to a expected value

Expected behavior: the hour shouldn't have jump back to the top

Steps to reproduce: open ionic date picker and scroll the hour down

<ion-datetime #dateTime displayFormat="hh:mm" pickerFormat="h:mm" hourValues="1, 2, 19, 20, 21" minuteValues="0,5,10,15,20,25,30,35,40,45,50,55" doneText="Set">

Ionic info:

Ionic:

Ionic CLI : 6.11.11 (C:\Users\Wing He\AppData\Roaming\npm\node_modules\@ionic\cli) Ionic Framework : @ionic/angular 5.5.2 @angular-devkit/build-angular : 0.1100.5 @angular-devkit/schematics : 9.1.8 @angular/cli : 10.1.4 @ionic/angular-toolkit : 2.3.3

Capacitor:

Capacitor CLI : 2.2.0 @capacitor/core : 2.2.0

Utility:

cordova-res : not installed native-run : not installed

System:

NodeJS : v14.15.3 (C:\Program Files\nodejs\node.exe) npm : 6.14.9 OS : Windows 10

ionitron-bot[bot] commented 3 years ago

Thanks for the issue! This issue has been labeled as holiday triage. With the winter holidays quickly approaching, much of the Ionic Team will soon be taking time off. During this time, issue triaging and PR review will be delayed until the team begins to return. After this period, we will work to ensure that all new issues are properly triaged and that new PRs are reviewed.

In the meantime, please read our Winter Holiday Triage Guide for information on how to ensure that your issue is triaged correctly.

Thank you!

1x2x3x4x commented 3 years ago

Same thing as here? If so, try downgrading to 5.3.2 and see if that helps.

liamdebeasi commented 3 years ago

Thanks, I can reproduce this issue. I have added this issue to our datetime bug tracker here: https://github.com/ionic-team/ionic-framework/issues/16630.

ionitron-bot[bot] commented 3 years ago

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.