Skip to content

Commit 2d0859a

Browse files
authored
fix: mouse events ignored on modal loading (#5409)
1 parent 509b268 commit 2d0859a

File tree

2 files changed

+14
-16
lines changed

2 files changed

+14
-16
lines changed

Diff for: packages/@core/ui-kit/popup-ui/src/modal/modal.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ const getAppendTo = computed(() => {
252252
ref="wrapperRef"
253253
:class="
254254
cn('relative min-h-40 flex-1 overflow-y-auto p-3', contentClass, {
255-
'pointer-events-none overflow-hidden': showLoading || submitting,
255+
'overflow-hidden': showLoading || submitting,
256256
})
257257
"
258258
>

Diff for: packages/effects/common-ui/src/components/api-component/api-component.vue

+13-15
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ const bindProps = computed(() => {
121121
[`onUpdate:${props.modelPropName}`]: (val: string) => {
122122
modelValue.value = val;
123123
},
124-
...objectOmit(attrs, ['onUpdate:value']),
124+
...objectOmit(attrs, [`onUpdate:${props.modelPropName}`]),
125125
...(props.visibleEvent
126126
? {
127127
[props.visibleEvent]: handleFetchForVisible,
@@ -191,18 +191,16 @@ function emitChange() {
191191
}
192192
</script>
193193
<template>
194-
<div v-bind="{ ...$attrs }">
195-
<component
196-
:is="component"
197-
v-bind="bindProps"
198-
:placeholder="$attrs.placeholder"
199-
>
200-
<template v-for="item in Object.keys($slots)" #[item]="data">
201-
<slot :name="item" v-bind="data || {}"></slot>
202-
</template>
203-
<template v-if="loadingSlot && loading" #[loadingSlot]>
204-
<LoaderCircle class="animate-spin" />
205-
</template>
206-
</component>
207-
</div>
194+
<component
195+
:is="component"
196+
v-bind="bindProps"
197+
:placeholder="$attrs.placeholder"
198+
>
199+
<template v-for="item in Object.keys($slots)" #[item]="data">
200+
<slot :name="item" v-bind="data || {}"></slot>
201+
</template>
202+
<template v-if="loadingSlot && loading" #[loadingSlot]>
203+
<LoaderCircle class="animate-spin" />
204+
</template>
205+
</component>
208206
</template>

0 commit comments

Comments
 (0)