You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have searched for existing issues that already report this problem, without success.
Current Behavior
When using ion-picker component to let the user choose how much time will a timer run, the ion-picker moves by its own and doesn't stay in the column option that the user has set. This happens only in tablets simulators in the browser (I don't have a tablet my own to test this).
This has been tested in Chrome and Mozilla. It doesn't seem to be an Apple thing, as in the iPhone devices it works properly.
In Mobile - iPhone 12 pro (it works OK in other mobile devices too)
In tablet - iPad Pro (it happens in all the tablets)
Expected Behavior
Ion-picker column does not change its values by its own in tablets as it does in mobile devices.
Steps to Reproduce
Create the next HTML and TS file:
This is my component HTML:
<ion-picker class="custom-picker">
<ion-picker-column
[value]="selectedHour"
(ionChange)="hourChanged($event)">
<ion-picker-column-option *ngFor="let num of hourOptions" [value]="num">{{ num }}</ion-picker-column-option>
</ion-picker-column>
<ion-picker-column
[value]="selectedMinute"
(ionChange)="minuteChanged($event)">
<div class="two-dots" slot="prefix">:</div>
<ion-picker-column-option *ngFor="let num of secMinOptions" [value]="num">{{ num }}</ion-picker-column-option>
<div class="two-dots" slot="suffix">:</div>
</ion-picker-column>
<ion-picker-column
[value]="selectedSecond"
(ionChange)="secondChanged($event)">
<ion-picker-column-option *ngFor="let num of secMinOptions" [value]="num">{{ num }}</ion-picker-column-option>
</ion-picker-column>
</ion-picker>
This can be fixed by changing the font-size of the component ion-picker-column-option. It seems like if the font size is too big, the wheel spins to the top values and if the font size is too small it spins to the values on the bottom. So the only way I found that it doesn't spin and stays in the selected values is to pick a font that is not too big nor too small.
The problem here is that you will need to set different font-sizes for different media devices, and even like that the widget might not good look when is functioning OK.
This issue seems to be related with this one: #29713
Prerequisites
Current Behavior
When using ion-picker component to let the user choose how much time will a timer run, the ion-picker moves by its own and doesn't stay in the column option that the user has set. This happens only in tablets simulators in the browser (I don't have a tablet my own to test this).
This has been tested in Chrome and Mozilla. It doesn't seem to be an Apple thing, as in the iPhone devices it works properly.
In Mobile - iPhone 12 pro (it works OK in other mobile devices too)
In tablet - iPad Pro (it happens in all the tablets)
Expected Behavior
Ion-picker column does not change its values by its own in tablets as it does in mobile devices.
Steps to Reproduce
This is my component HTML:
This is my TS file:
Ionic Info
Versions:
Ionic:
Ionic CLI : 7.2.0
Ionic Framework : @ionic/angular 8.5.0
@angular-devkit/build-angular : 18.2.15
@angular-devkit/schematics : 18.2.15
@angular/cli : 18.2.15
@ionic/angular-toolkit : 11.0.1
Capacitor:
Capacitor CLI : 7.1.0
@capacitor/android : 7.0.1
@capacitor/core : 7.1.0
@capacitor/ios : 7.0.1
Utility:
cordova-res : 0.15.4
native-run : 2.0.1
System:
NodeJS : v22.12.0
npm : 10.9.0
OS : Linux 5.15
Additional Information
No response
The text was updated successfully, but these errors were encountered: