|
|
@@ -302,6 +302,8 @@ export const PromptInput: Component<PromptInputProps> = (props) => {
|
|
|
}
|
|
|
|
|
|
const handleGlobalDragOver = (event: DragEvent) => {
|
|
|
+ if (dialog.active) return
|
|
|
+
|
|
|
event.preventDefault()
|
|
|
const hasFiles = event.dataTransfer?.types.includes("Files")
|
|
|
if (hasFiles) {
|
|
|
@@ -310,6 +312,8 @@ export const PromptInput: Component<PromptInputProps> = (props) => {
|
|
|
}
|
|
|
|
|
|
const handleGlobalDragLeave = (event: DragEvent) => {
|
|
|
+ if (dialog.active) return
|
|
|
+
|
|
|
// relatedTarget is null when leaving the document window
|
|
|
if (!event.relatedTarget) {
|
|
|
setStore("dragging", false)
|
|
|
@@ -317,6 +321,8 @@ export const PromptInput: Component<PromptInputProps> = (props) => {
|
|
|
}
|
|
|
|
|
|
const handleGlobalDrop = async (event: DragEvent) => {
|
|
|
+ if (dialog.active) return
|
|
|
+
|
|
|
event.preventDefault()
|
|
|
setStore("dragging", false)
|
|
|
|