Skip to content

FORMS-25113 Sow multiselect options as scrollable visible list#173

Closed
gaurav5826 wants to merge 1 commit into
adobe:mainfrom
gaurav5826:flexibleHeightForDD
Closed

FORMS-25113 Sow multiselect options as scrollable visible list#173
gaurav5826 wants to merge 1 commit into
adobe:mainfrom
gaurav5826:flexibleHeightForDD

Conversation

@gaurav5826

@gaurav5826 gaurav5826 commented Apr 22, 2026

Copy link
Copy Markdown
Collaborator

Problem

When a dropdown was configured as multiselect (type: string[]), the <select> element rendered with a fixed height of ~48px — just enough to show a single row — and was scrollable. This made it very difficult for users to see and pick from the available options.

Solution

  • Added size={Math.min(options.length + 1, 6)} so the multiselect renders as an expanded visible list (capped at 6 rows to avoid taking up too much vertical space)
  • Added style={{ height: 'auto' }} to override any fixed-height CSS that was collapsing the list back to 48px

Single-select dropdowns are unaffected — both attributes are only applied when isMultiSelect is true.

Test plan

  • All 13 existing DropDown tests pass
  • Multiselect renders as an expanded list showing up to 6 options at a time
  • Single-select dropdown behavior and appearance unchanged

Fixes: FORMS-25113

Before:
image

After:
image

Add size and style props to multiselect <select> in DropDown so options
render as a visible scrollable list (capped at 6 rows) instead of a
collapsed dropdown.
@gaurav5826 gaurav5826 requested a review from amit-mnnit April 22, 2026 09:30
@gaurav5826 gaurav5826 closed this Apr 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant