Skip to content

Commit 0f94efb

Browse files
committed
fix for modal click by changing position
1 parent 5f38b9c commit 0f94efb

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/components/app/details/cicdHistory/Sidebar.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ const Sidebar = React.memo(
133133
DropdownIndicator,
134134
}}
135135
styles={FILTER_STYLE}
136-
menuPortalTarget={document.body}
136+
menuPosition="fixed"
137137
/>
138138
</div>
139139

src/components/ciPipeline/SourceMaterials.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ export const SourceMaterials: React.FC<SourceMaterialsProps> = function (props)
161161
placeholder="Source Type"
162162
classNamePrefix={`select-build-pipeline-sourcetype-${index}`}
163163
isSearchable={false}
164-
menuPortalTarget={document.getElementById('visible-modal')}
164+
menuPosition="fixed"
165165
options={
166166
!isMultiGit
167167
? props.ciPipelineSourceTypeOptions

src/components/cluster/UseNameListDropdown.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export default function UserNameDropDownList({ clusterDetail, selectedUserNameOp
2525
options={userNameOptions}
2626
value={selectedUserNameOptions[clusterDetail.cluster_name]}
2727
isSearchable={false}
28-
menuPortalTarget={document.getElementById('visible-modal')}
28+
menuPosition="fixed"
2929
onChange={handleUserChange}
3030
menuPlacement="auto"
3131
components={{

0 commit comments

Comments
 (0)