Skip to content

Commit

Permalink
Catch additional invalide reference on Android
Browse files Browse the repository at this point in the history
  • Loading branch information
DustinMackintosh committed Oct 22, 2024
1 parent 1f76b65 commit dcebdba
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import {
EDITOR_TO_PLACEHOLDER_ELEMENT,
EDITOR_TO_USER_MARKS,
IS_COMPOSING,
IS_NODE_MAP_DIRTY,
} from '../../utils/weak-maps'

export type Action = { at?: Point | Range; run: () => void }
Expand Down Expand Up @@ -345,6 +346,10 @@ export function createAndroidInputManager({
flushTimeoutId = null
}

if (IS_NODE_MAP_DIRTY.get(editor)) {
return
}

const { inputType: type } = event
let targetRange: Range | null = null
const data: DataTransfer | string | undefined =
Expand Down

0 comments on commit dcebdba

Please sign in to comment.