Skip to content

bug: scroll bar not showing up for ion-select or alert popup on Android #24288

@DiogoParrinha

Description

@DiogoParrinha

Prerequisites

Ionic Framework Version

  • v4.x
  • v5.x
  • v6.x

Current Behavior

When using ion-select or ion-alert, if there are more options than the ones that fit the screen, the vertical scrollbar doesn't show up.

This seems to work well with ionic serve but not when running on an Android device.

Links:

I've tried setting overflow: auto !important; but it just doesn't seem to do anything on the device. Scrolling works fine but the user won't know there's anything to see if there's no scroll bar :)

I've spent countless hours searching for possible solutions:

Expected Behavior

This was the only one that worked #17397 (comment) but it's somewhat of a hack to actually customize the scroll bar in order to see it. This should be provided by ionic out of the box to match the design of the given OS.

image

Steps to Reproduce

Create an ion-select or an alert with ion-alert for radio or check boxes and make sure there are many options.
There is no scrollbar on Android (device or emulator).

Code Reproduction URL

No response

Ionic Info

Ionic:

Ionic CLI : 6.13.1 (C:\Users\diogo\AppData\Roaming\npm\node_modules@ionic\cli)
Ionic Framework : @ionic/angular 5.6.4
@angular-devkit/build-angular : 0.1102.9
@angular-devkit/schematics : 11.2.9
@angular/cli : 11.2.9
@ionic/angular-toolkit : 3.1.1

Capacitor:

Capacitor CLI : 3.2.3
@capacitor/core : 3.2.3

Cordova:

Cordova CLI : not installed
Cordova Platforms : not available
Cordova Plugins : not available

Utility:

cordova-res : 0.15.3
native-run : 1.4.1

System:

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

Additional Information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions