You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Core MultiSelect dropdown opens at the top-left corner instead of under the field #35403
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
Fixes open-metadata#35403: Anchor the core MultiSelect popover to its…