MDB5 4.0.0 MDBSelect dropdown size doesn't consider the


Topic: MDB5 4.0.0 MDBSelect dropdown size doesn't consider the 'Select All' option

beenham pro premium priority asked 2 years ago

Expected behavior

Dropdown shows 4 options + 'Select All' option when visible options = 5

Actual behavior

Dropdown shows 3 options + 'Select All' option and become scrollable

Dropdown created is max height '152px' (4 * 38px) where it should be 190px (5 * 38px)

enter image description here

Resources (screenshots, code snippets etc.) enter image description here

corresponding code snippet:

      <MDBSelect
        label="Test"
        multiple
        selectAll={true}
        visibleOptions={5}
        data={[
          { text: '1', value: 1 },
          { text: '2', value: 2 },
          { text: '3', value: 3 },
          { text: '4', value: 4 },
        ]}
      />

Krzysztof Wilk staff answered 2 years ago

Hi!

Thanks for reporting that, we'll fix it in the next release :)

Keep coding!


beenham pro premium priority commented 2 years ago

Hi Krzysztof,

I see that the latest release (v4.1.0) suggests this is fixed - Select - fixed visible options when select all button exists

however, I am still seeing the issue, and can recreate the issue using the original code snippet.


Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Answered

Specification of the issue
  • User: Pro
  • Premium support: Yes
  • Technology: MDB React
  • MDB Version: MDB5 4.0.0
  • Device: PC
  • Browser: Chrome
  • OS: Win11
  • Provided sample code: No
  • Provided link: No