Repository navigation
slate-react@0.129.0
·
14 commits
to main
since this release
Patch Changes
-
#6140
7119501Thanks @dylans! - Stop dropping Android input that arrives before the editor re-renders. When the node map was stale,beforeinputevents were ignored, so the browser's native insert was overwritten by the next render. That lost the first character typed into an emptied editor, or every other character when typing fast. They now resolve against the editor's selection instead of the stale DOM. -
#6130
ab50c3bThanks @dylans! - Initialize the editor frominitialValuewhen a differenteditoris passed to an already mounted<Slate>, such as when React fast refresh re-runs theuseMemothat creates it. Previously the new editor kept emptychildren, and the next operation threw "Cannot find a descendant at path [0]".