Skip to content

Commit 90ab914

Browse files
Pearl1594dhslove
authored andcommitted
Prevent multi-select dropdown menu from floating on scrolling through the form (apache#11237)
1 parent be1a2b0 commit 90ab914

File tree

4 files changed

+19
-0
lines changed

4 files changed

+19
-0
lines changed

ui/src/views/offering/AddComputeOffering.vue

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@
4747
<tooltip-label :title="$t('label.systemvmtype')" :tooltip="apiParams.systemvmtype.description"/>
4848
</template>
4949
<a-select
50+
:getPopupContainer="(trigger) => trigger.parentNode"
5051
v-model:value="form.systemvmtype"
5152
showSearch
5253
optionFilterProp="label"
@@ -214,6 +215,7 @@
214215
<tooltip-label :title="$t('label.deploymentplanner')" :tooltip="apiParams.deploymentplanner.description"/>
215216
</template>
216217
<a-select
218+
:getPopupContainer="(trigger) => trigger.parentNode"
217219
v-model:value="form.deploymentplanner"
218220
showSearch
219221
optionFilterProp="label"
@@ -245,6 +247,7 @@
245247
</a-form-item>
246248
<a-form-item name="pcidevice" ref="pcidevice" :label="$t('label.gpu')" v-if="!isSystem">
247249
<a-select
250+
:getPopupContainer="(trigger) => trigger.parentNode"
248251
v-model:value="form.pcidevice"
249252
showSearch
250253
optionFilterProp="label"
@@ -260,6 +263,7 @@
260263
</a-form-item>
261264
<a-form-item name="vgputype" ref="vgputype" :label="$t('label.vgputype')" v-if="vGpuVisible">
262265
<a-select
266+
:getPopupContainer="(trigger) => trigger.parentNode"
263267
v-model:value="form.vgputype"
264268
showSearch
265269
optionFilterProp="label"
@@ -281,6 +285,7 @@
281285
</template>
282286
<a-select
283287
mode="multiple"
288+
:getPopupContainer="(trigger) => trigger.parentNode"
284289
v-model:value="form.domainid"
285290
showSearch
286291
optionFilterProp="label"
@@ -305,6 +310,7 @@
305310
<a-select
306311
id="zone-selection"
307312
mode="multiple"
313+
:getPopupContainer="(trigger) => trigger.parentNode"
308314
v-model:value="form.zoneid"
309315
showSearch
310316
optionFilterProp="label"
@@ -331,6 +337,7 @@
331337
<tooltip-label :title="$t('label.vmware.storage.policy')" :tooltip="apiParams.storagepolicy.description"/>
332338
</template>
333339
<a-select
340+
:getPopupContainer="(trigger) => trigger.parentNode"
334341
v-model:value="form.storagepolicy"
335342
:placeholder="apiParams.storagepolicy.description"
336343
showSearch
@@ -565,6 +572,7 @@
565572
</template>
566573
<a-select
567574
mode="tags"
575+
:getPopupContainer="(trigger) => trigger.parentNode"
568576
v-model:value="form.storagetags"
569577
showSearch
570578
optionFilterProp="value"
@@ -604,6 +612,7 @@
604612
<br /><br />
605613
<a-form-item :label="$t('label.disk.offerings')" name="diskofferingid" ref="diskofferingid">
606614
<a-select
615+
:getPopupContainer="(trigger) => trigger.parentNode"
607616
v-model:value="form.diskofferingid"
608617
:loading="loading"
609618
:placeholder="$t('label.diskoffering')">

ui/src/views/offering/AddDiskOffering.vue

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -230,6 +230,7 @@
230230
<tooltip-label :title="$t('label.storagetags')" :tooltip="apiParams.tags.description"/>
231231
</template>
232232
<a-select
233+
:getPopupContainer="(trigger) => trigger.parentNode"
233234
mode="tags"
234235
v-model:value="form.tags"
235236
showSearch
@@ -254,6 +255,7 @@
254255
</template>
255256
<a-select
256257
mode="multiple"
258+
:getPopupContainer="(trigger) => trigger.parentNode"
257259
v-model:value="form.domainid"
258260
showSearch
259261
optionFilterProp="label"
@@ -278,6 +280,7 @@
278280
<a-select
279281
id="zone-selection"
280282
mode="multiple"
283+
:getPopupContainer="(trigger) => trigger.parentNode"
281284
v-model:value="form.zoneid"
282285
showSearch
283286
optionFilterProp="label"
@@ -301,6 +304,7 @@
301304
<tooltip-label :title="$t('label.vmware.storage.policy')" :tooltip="apiParams.storagepolicy.description"/>
302305
</template>
303306
<a-select
307+
:getPopupContainer="(trigger) => trigger.parentNode"
304308
v-model:value="form.storagepolicy"
305309
:placeholder="apiParams.storagepolicy.description"
306310
showSearch

ui/src/views/offering/AddNetworkOffering.vue

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -334,6 +334,7 @@
334334
<tooltip-label :title="$t('label.serviceofferingid')" :tooltip="apiParams.serviceofferingid.description"/>
335335
</template>
336336
<a-select
337+
:getPopupContainer="(trigger) => trigger.parentNode"
337338
showSearch
338339
optionFilterProp="label"
339340
v-model:value="form.serviceofferingid"
@@ -520,6 +521,7 @@
520521
</template>
521522
<a-select
522523
mode="multiple"
524+
:getPopupContainer="(trigger) => trigger.parentNode"
523525
v-model:value="form.domainid"
524526
showSearch
525527
optionFilterProp="label"
@@ -544,6 +546,7 @@
544546
<a-select
545547
id="zone-selection"
546548
mode="multiple"
549+
:getPopupContainer="(trigger) => trigger.parentNode"
547550
v-model:value="form.zoneid"
548551
showSearch
549552
optionFilterProp="label"

ui/src/views/offering/AddVpcOffering.vue

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,7 @@
179179
<tooltip-label :title="$t('label.serviceofferingid')" :tooltip="apiParams.serviceofferingid.description"/>
180180
</template>
181181
<a-select
182+
:getPopupContainer="(trigger) => trigger.parentNode"
182183
showSearch
183184
optionFilterProp="label"
184185
v-model:value="form.serviceofferingid"
@@ -201,6 +202,7 @@
201202
</template>
202203
<a-select
203204
mode="multiple"
205+
:getPopupContainer="(trigger) => trigger.parentNode"
204206
v-model:value="form.domainid"
205207
showSearch
206208
optionFilterProp="label"
@@ -225,6 +227,7 @@
225227
<a-select
226228
id="zone-selection"
227229
mode="multiple"
230+
:getPopupContainer="(trigger) => trigger.parentNode"
228231
v-model:value="form.zoneid"
229232
showSearch
230233
optionFilterProp="label"

0 commit comments

Comments
 (0)