1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-11-26 22:41:17 +02:00

Windows: Rich Text Editor: Fix dropping a URL from the Firefox addressbar inserts nothing (#12282)

This commit is contained in:
Henry Heino
2025-05-19 14:55:42 -07:00
committed by GitHub
parent 12c688eb83
commit 465defb194

View File

@@ -62,6 +62,7 @@ export default function useDropHandler(dependencies: HookDependencies): DropHand
paths.push(path);
}
if (paths.length > 0) {
const props: DropCommandValue = {
type: 'files',
pos: eventPosition,
@@ -75,6 +76,7 @@ export default function useDropHandler(dependencies: HookDependencies): DropHand
});
return true;
}
}
return false;
// eslint-disable-next-line @seiyab/react-hooks/exhaustive-deps -- Old code before rule was applied