github ianstormtaylor/slate slate-react@0.129.0

3 hours ago

Patch Changes

  • #6140 7119501 Thanks @dylans! - Stop dropping Android input that arrives before the editor re-renders. When the node map was stale, beforeinput events 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 ab50c3b Thanks @dylans! - Initialize the editor from initialValue when a different editor is passed to an already mounted <Slate>, such as when React fast refresh re-runs the useMemo that creates it. Previously the new editor kept empty children, and the next operation threw "Cannot find a descendant at path [0]".

Don't miss a new slate release

NewReleases is sending notifications on new releases.