mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-08-18 05:01:17 +02:00
fix: flush onDOMSelectionChange on onDOMBeforeInput (#4809)
This commit is contained in:
@@ -330,6 +330,7 @@ export const Editable = (props: EditableProps) => {
|
||||
// triggering a `beforeinput` expecting the change to be applied to the immediately before
|
||||
// set selection.
|
||||
scheduleOnDOMSelectionChange.flush()
|
||||
onDOMSelectionChange.flush()
|
||||
|
||||
const { selection } = editor
|
||||
const { inputType: type } = event
|
||||
|
Reference in New Issue
Block a user