mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-08-26 16:44:22 +02:00
committed by
Ian Storm Taylor
parent
c688ad7c72
commit
594e891c32
@@ -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
|
||||
|
Reference in New Issue
Block a user