mirror of https://github.com/laurent22/joplin.git
Desktop: Fix: Fixed cursor moved to the top issue in Markdown editor (#4870)
Ref: https://discourse.joplinapp.org/t/cursor-moved-to-the-top-undo-history-removed/16837/6pull/4492/head^2
parent
0aef1f95ef
commit
e95ea48ce9
|
@ -9,6 +9,8 @@ export default function useDropHandler(dependencies: HookDependencies) {
|
|||
const { editorRef } = dependencies;
|
||||
|
||||
return useCallback(async (event: any) => {
|
||||
if (!event.dataTransfer) return;
|
||||
|
||||
const dt = event.dataTransfer;
|
||||
const createFileURL = event.altKey;
|
||||
|
||||
|
|
Loading…
Reference in New Issue