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

This commit is contained in:
Chirag Madlani 2025-06-06 18:12:10 +05:30 committed by GitHub
parent b0f82aa0ef
commit fc8e4af3e0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
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

@ -395,6 +395,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', {