Skip to content

slate-react@0.132.0

Choose a tag to compare

@github-actions github-actions released this 09 Oct 05:58
· 6 commits to main since this release
14bed4c

Minor Changes

  • #6190 bac6474 Thanks @dylans! - Type Editable's extra props as div attributes (React.HTMLAttributes<HTMLDivElement>) instead of textarea attributes. Textarea-only props such as rows, cols, maxLength, wrap and value never did anything on the editor's div; they now fail to type-check, so remove them.

Patch Changes

  • #6192 6bcf677 Thanks @dylans! - The default scrollSelectionIntoView now scrolls just enough to reveal the caret (block: 'nearest') instead of centering it, so moving the caret with the arrow keys past the edge of the viewport no longer jumps the page by half a screen. Pass your own scrollSelectionIntoView to keep centering.