Skip to content

Core MultiSelect dropdown opens at the top-left corner instead of under the field #35403

Closed

Description

@chirag-madlani

Bug

The core MultiSelect (openmetadata-ui-core-components, base/select/multi-select.tsx) opens its dropdown at the top-left corner of the viewport, as tall as its whole option list, instead of under the field.

Its only user is CoreEnumMultiSelectField, which FormBuilderV1 renders for uiFieldType: "treeSelect" arrays (#34739). So the bug shows on app configuration forms: the Search Indexing entities field and Metadata Exporter eventTypes.

Observed

Settings → Applications → Search Indexing → Configuration, click Entities. The open popover has:

style="position: fixed; top: 0px; left: 0px; z-index: 100000; max-height: 100vh; --trigger-width: 742px"
getBoundingClientRect(): x=0, y=0  (the field is at x=285, y=505)

It stays at 0,0 after typing and after scrolling. The width style that MultiSelect sets from its trigger is missing too.

Cause

MultiSelect hands its trigger to the popover as ref={placeholderRef} on MultiSelectTagsValue, a plain function component. React 18 doesn't pass ref to function components, so placeholderRef.current stays null. That has two effects:

  • the Popover gets triggerRef={placeholderRef} and has nothing to position against;
  • onResize returns early, so the popover width is never set.

Combobox avoids this by passing the trigger ref as a named prop (triggerRef) and attaching it with ref={triggerRef} on the AriaGroup.

Playwright specs don't catch it, because they click the option wherever it renders (SearchIndexApplication.spec.ts passes).

Fix

Pass the trigger ref to MultiSelectTagsValue as triggerRef and attach it to the AriaGroup, as Combobox does.

Activity

  1. added this to Shipping and removed this from Roadmapon Oct 14, 2026
  2. moved this to In Review / QA 👀 in Shippingon Oct 14, 2026
  3. moved this from In Review / QA 👀 to Done ✅ in Shippingon Oct 14, 2026
  4. added a commit that references this issue on Oct 14, 2026
    465d317
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    • Status
      Done ✅

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions