Merge pull request #7408 from uinstinct/drag-over-msg
fix: close drag over message overlay during onDrop
This commit is contained in:
commit
0c97576210
1 changed files with 1 additions and 1 deletions
|
|
@ -204,6 +204,7 @@ export function TipTapEditor(props: TipTapEditorProps) {
|
|||
setShowDragOverMsg(true);
|
||||
}}
|
||||
onDrop={(event) => {
|
||||
setShowDragOverMsg(false);
|
||||
if (
|
||||
!defaultModel ||
|
||||
!modelSupportsImages(
|
||||
|
|
@ -215,7 +216,6 @@ export function TipTapEditor(props: TipTapEditorProps) {
|
|||
) {
|
||||
return;
|
||||
}
|
||||
setShowDragOverMsg(false);
|
||||
let file = event.dataTransfer.files[0];
|
||||
void handleImageFile(ideMessenger, file).then((result) => {
|
||||
if (!editor) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue