Skip to content

Commit c0ac6f5

Browse files
committed
fix: drop container of MulimodalInput
1 parent 9a1b14b commit c0ac6f5

File tree

2 files changed

+13
-3
lines changed

2 files changed

+13
-3
lines changed

.changeset/great-places-post.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
'@modelscope-studio/pro': patch
3+
'modelscope_studio': patch
4+
---
5+
6+
fix: drop container of MulimodalInput

frontend/pro/multimodal-input/multimodal-input.tsx

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -392,9 +392,13 @@ export const MultimodalInput = sveltify<
392392
...uploadConfig?.imageProps,
393393
}}
394394
disabled={uploadDisabled}
395-
getDropContainer={() => {
396-
return uploadConfig?.fullscreenDrop ? document.body : null;
397-
}}
395+
getDropContainer={
396+
uploadConfig?.fullscreenDrop
397+
? () => {
398+
return document.body;
399+
}
400+
: undefined
401+
}
398402
items={validFileList}
399403
placeholder={(type) => {
400404
const isDrop = type === 'drop';

0 commit comments

Comments
 (0)