mirror of
https://github.com/laurent22/joplin.git
synced 2025-01-11 18:24:43 +02:00
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/6
This commit is contained in:
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
Block a user