fix(ui): select popup sticky for scrollable container (#21593)

(cherry picked from commit fc8e4af3e0f6e54d6ae532535f47f3070df4f813)
This commit is contained in:
Chirag Madlani 2025-06-06 18:12:10 +05:30 committed by OpenMetadata Release Bot
parent 7040e02cfb
commit 6a86e8d9a0
2 changed files with 2 additions and 0 deletions

View File

@ -116,6 +116,7 @@ const TeamsSelectable = ({
treeDefaultExpandAll
data-testid="team-select"
dropdownStyle={{ maxHeight: 300, overflow: 'auto' }}
getPopupContainer={(triggerNode) => triggerNode.parentElement}
loading={isLoading}
maxTagCount={maxValueCount}
placeholder={placeholder}

View File

@ -413,6 +413,7 @@ const CreateUser = ({
data-testid="roles-dropdown"
disabled={isEmpty(roles)}
filterOption={handleSearchFilterOption}
getPopupContainer={(triggerNode) => triggerNode.parentElement}
mode="multiple"
options={roleOptions}
placeholder={t('label.please-select-entity', {