You've already forked joplin
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:
@@ -62,6 +62,7 @@ export default function useDropHandler(dependencies: HookDependencies): DropHand
|
|||||||
paths.push(path);
|
paths.push(path);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (paths.length > 0) {
|
||||||
const props: DropCommandValue = {
|
const props: DropCommandValue = {
|
||||||
type: 'files',
|
type: 'files',
|
||||||
pos: eventPosition,
|
pos: eventPosition,
|
||||||
@@ -75,6 +76,7 @@ export default function useDropHandler(dependencies: HookDependencies): DropHand
|
|||||||
});
|
});
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
// eslint-disable-next-line @seiyab/react-hooks/exhaustive-deps -- Old code before rule was applied
|
// eslint-disable-next-line @seiyab/react-hooks/exhaustive-deps -- Old code before rule was applied
|
||||||
|
|||||||
Reference in New Issue
Block a user