Skip to content

Commit

Permalink
Fix a regression in composition handling
Browse files Browse the repository at this point in the history
FIX: Fix a regression in composition handling in 1.33.3 that occurs for some IMEs
when starting composition on an empty line.

Closes ProseMirror/prosemirror#1458
  • Loading branch information
marijnh committed Apr 22, 2024
1 parent 312660c commit ab8fa82
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/input.ts
Original file line number Diff line number Diff line change
Expand Up @@ -526,7 +526,7 @@ export function findCompositionNode(view: EditorView) {
return textAfter
}
}
return textBefore
return textBefore || textAfter
}

function timestampFromCustomEvent() {
Expand Down

0 comments on commit ab8fa82

Please sign in to comment.