I'm using ionic 4.7.0
.
The problem I'm reporting happens on Chrome and Firefox.
Actual Behaviour:
Using ion-select
with a big list of options, when you open the alert, ion-select
does not automatically scroll to the selected value. The user sees the first value in the list of options and he might think that nothing is selected
Expected Behaviour:
When the alert is open, the view automatically center on the selected value
I created this stackblitz to highlight the behaviour, we can see on the stackblitz that on loading the view, the selected value is 11:00
but when you open the alert (by clicking on ion-select), I would expect the view to be automatically scrolled on the selected value.
Is that expected behaviour with ion-select?
I found a few questions talking about the same subject but nothing that really answers the question:
Ion-select doesn't scroll in Ionic 3: This one gives a solution with CSS that can't work with ionic 4 because ionic 4 uses web Components that are not modifiable
ion-select not showing selected option with FormBuilder (Ionic 3): Same as above
https://github.com/ionic-team/ionic-v3/issues/1005: Some scroll bug with ion-select that is suppose to be fixed with ionic 3.9.5, so I guess it's not the same problem