bug: ion-select cannot handle long lists with a visible scrollbar for web users (alert view, Ionic 4.4.2)
See original GitHub issueWith Ionic 4.4.2, the ion-select component (with default alert interface) cannot be configured or styled to show a scrollbar for larger lists of more than 8 or so items. This makes the component unusable on larger lists where web-based users need scrollbars.
For lists of 10 to 20 items, there are temporary workarounds for changing the alert-wrapper max-height and adjusting the inner alert button height, but for larger 20+ lists, there doesn’t seem to be any way to force a scrollbar on the inner content section of the alert (e.g. overflow-y: scroll
on the alert-wrapper class).
After a lot of troubleshooting, it was easier to switch over to a plain select component for the larger. If this can’t be easily fixed, then to support future CSS styling, it would be useful if there were an inner div inside of alert-wrapper, and if alert-wrapper could be set to overflow-y:scroll. There is something preventing overflow-y:scroll !important
from taking effect on alert-wrapper, even in Chrome dev tools… maybe someone with more flex experience has a solution.
Issue Analytics
- State:
- Created 4 years ago
- Reactions:2
- Comments:8
We are now using this workaround (in global.scss):
Will this be fixed anytime soon? Its been almost 2 years!