-
Notifications
You must be signed in to change notification settings - Fork 13.5k
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: selected hours of datetime picker are scrolling to top or bottom when try to select a value #22149
Comments
I have the exact same issue with v4 and v5. I do not have to set a max but it never happens at the first selection, you have to open and select a value multiple times for that to happen. |
Thanks for the issue! This issue has been labeled as Please provide a reproduction with the minimum amount of code required to reproduce the issue. Without a reliable code reproduction, it is unlikely we will be able to resolve the issue, leading to it being closed. For a guide on how to create a good reproduction, see our Contributing Guide. |
Here's a code reproduction https://github.com/kokmok/ionic-datetime-bug-reproduction-blank I start an android adb, run |
to reproduce just create a new angular ionic project with the latest packages from angular and ionic, use the HTML from my bug report: <ion-datetime id="startDatePicker" [pickerOptions]="startPickerOptions" [max]="maxDate" and in your typescript i want to open the datepicker by: document.getElementById('startDatePicker').click() But it behaviors the same when you click on a not hidden datepicker |
I had to downgrade back to 5.3.2 to fix it also. |
@1x2x3x4x you are right in 5.3.2 it is working as expected thanks |
I'm having the same problem in my applications. I've cloned the repo that @kokmok made (thanks) and this reproduces the issue in the same way. Ionic Info:
|
I'm having the same problem also, both in browser and on devices (Android 10 and iOS 13 & 14) Ionic CLI: 5.4.4 |
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. |
Bug Report
Ionic version:
[ ] 4.x
[x] 5.3.3
Current behavior:
When selecting in a Datetimepicker with the format: DD/MMMM/YYYY/HH:mm the selector of the time (mostly hours) are jumping to the top or button when trying to select a value, I have max and min date set.
Expected behavior:
I can select an Value without jumping
Steps to reproduce:
Related code:
Other information:
Ionic info:
The text was updated successfully, but these errors were encountered: