diff --git a/packages/slate-react/src/utils/get-event-range.js b/packages/slate-react/src/utils/get-event-range.js index db788c6a9..61ce8dbd7 100644 --- a/packages/slate-react/src/utils/get-event-range.js +++ b/packages/slate-react/src/utils/get-event-range.js @@ -23,7 +23,7 @@ function getEventRange(event, editor) { event = event.nativeEvent } - const { x, y, target } = event + const { clientX: x, clientY: y, target } = event if (x == null || y == null) return null const { value } = editor