File tree 2 files changed +26
-37
lines changed
2 files changed +26
-37
lines changed Original file line number Diff line number Diff line change @@ -82,17 +82,17 @@ const {
82
82
zIndex,
83
83
} = usePriorityValues (props , state );
84
84
85
- watch (
86
- () => showLoading .value ,
87
- (v ) => {
88
- if (v && wrapperRef .value ) {
89
- wrapperRef .value .scrollTo ({
90
- // behavior: 'smooth',
91
- top: 0 ,
92
- });
93
- }
94
- },
95
- );
85
+ // watch(
86
+ // () => showLoading.value,
87
+ // (v) => {
88
+ // if (v && wrapperRef.value) {
89
+ // wrapperRef.value.scrollTo({
90
+ // // behavior: 'smooth',
91
+ // top: 0,
92
+ // });
93
+ // }
94
+ // },
95
+ // );
96
96
97
97
function interactOutside(e : Event ) {
98
98
if (! closeOnClickModal .value || submitting .value ) {
@@ -266,19 +266,13 @@ const getForceMount = computed(() => {
266
266
ref =" wrapperRef"
267
267
:class ="
268
268
cn('relative flex-1 overflow-y-auto p-3', contentClass, {
269
- 'overflow-hidden ': showLoading,
269
+ 'pointer-events-none ': showLoading || submitting ,
270
270
})
271
271
"
272
272
>
273
- <VbenLoading
274
- v-if =" showLoading || submitting"
275
- class =" size-full"
276
- spinning
277
- />
278
-
279
273
<slot ></slot >
280
274
</div >
281
-
275
+ < VbenLoading v-if = " showLoading || submitting " spinning />
282
276
<SheetFooter
283
277
v-if =" showFooter"
284
278
:class ="
Original file line number Diff line number Diff line change @@ -123,17 +123,17 @@ watch(
123
123
{ immediate: true },
124
124
);
125
125
126
- watch (
127
- () => [showLoading .value , submitting .value ],
128
- ([l , s ]) => {
129
- if ((s || l ) && wrapperRef .value ) {
130
- wrapperRef .value .scrollTo ({
131
- // behavior: 'smooth',
132
- top: 0 ,
133
- });
134
- }
135
- },
136
- );
126
+ // watch(
127
+ // () => [showLoading.value, submitting.value],
128
+ // ([l, s]) => {
129
+ // if ((s || l) && wrapperRef.value) {
130
+ // wrapperRef.value.scrollTo({
131
+ // // behavior: 'smooth',
132
+ // top: 0,
133
+ // });
134
+ // }
135
+ // },
136
+ // );
137
137
138
138
function handleFullscreen() {
139
139
props .modalApi ?.setState ((prev ) => {
@@ -274,18 +274,13 @@ function handleClosed() {
274
274
ref =" wrapperRef"
275
275
:class ="
276
276
cn('relative min-h-40 flex-1 overflow-y-auto p-3', contentClass, {
277
- 'overflow-hidden ': showLoading || submitting,
277
+ 'pointer-events-none ': showLoading || submitting,
278
278
})
279
279
"
280
280
>
281
- <VbenLoading
282
- v-if =" showLoading || submitting"
283
- class =" size-full h-auto min-h-full"
284
- spinning
285
- />
286
281
<slot ></slot >
287
282
</div >
288
-
283
+ < VbenLoading v-if = " showLoading || submitting " spinning />
289
284
<VbenIconButton
290
285
v-if =" fullscreenButton"
291
286
class =" hover:bg-accent hover:text-accent-foreground text-foreground/80 flex-center absolute right-10 top-3 hidden size-6 rounded-full px-1 text-lg opacity-70 transition-opacity hover:opacity-100 focus:outline-none disabled:pointer-events-none sm:block"
You can’t perform that action at this time.
0 commit comments