Scrolling MDB Select Options on Mobile Devices


Topic: Scrolling MDB Select Options on Mobile Devices

Graham Meehan asked a year ago

Expected behavior

An MDB Select which can scroll through its select-items in a manner normally expected on mobile devices. (Touch anywhere in a list and drag to begin scrolling)

Actual behavior

Touch-scrolling on mobile devices (or with mobile-mode active in Development Mode in Chrome) will either close the dropdown prematurely or unintentionally select a dropdown option if the user starts touch-scrolling directly on top of a dropdown option.

Successful scrolling can only be carried out if the user touches inside the unordered-list (ul) element but not inside of one of the contained list-item (li) elements, which is usually too small of a space to selectively touch on a mobile device.

Resources (screenshots, code snippets etc.) https://mdbootstrap.com/snippets/jquery/graham_meehan/1406048


Issue resolved in Version 4.9.0.

Thanks!


Sebastian Kaczmarek staff pro premium answered a year ago

Definitely a bug on our side. We'll fix it asap. Thanks for the report.


Workaround:

comment or empty the function bindMobileDevicesMousedown()


Please insert min. 20 characters.
Status

Resolved

Specification of the issue
  • User: Free
  • Premium support: No
  • Technology: jQuery
  • MDB Version: 4.8.11
  • Device: Mobile
  • Browser: Chrome
  • OS: Android
  • Provided sample code: No
  • Provided link: Yes