mirror of
https://github.com/Termix-SSH/Termix.git
synced 2026-10-29 14:45:24 +00:00
fix(file-manager): accept OS file drops over existing rows (#1484)
* fix(file-manager): accept OS file drops over existing rows * test(file-manager): target the file label in drop tests * test(css): exercise the configured PostCSS plugin chain * test(identity): preserve full Ed25519 public keys in fixtures * test(remote-desktop): always mutate ciphertext in tamper test
This commit is contained in:
1 parent
4423c4c8ef
commit
98cf62547f
2 files changed
+54
-1
No files matched your search
@@ -458,6 +458,9 @@ export function FileManagerGrid({
|
||||
};
|
||||
|
||||
const handleFileDrop = (e: React.DragEvent, targetFile: FileItem) => {
|
||||
// OS drops belong to the pane's upload handler, even over an existing row.
|
||||
if (dragState.type !== "internal" && !isLocalFilesDrag(e.dataTransfer))
|
||||
return;
|
||||
e.preventDefault();
|
||||
e.stopPropagation();
|
||||
|
||||
|
||||
Reference in new issue
Block a user