diff --git a/.changeset/guard-collapsetoend-empty-selection.md b/.changeset/guard-collapsetoend-empty-selection.md deleted file mode 100644 index 548b3c3187..0000000000 --- a/.changeset/guard-collapsetoend-empty-selection.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'slate-react': patch ---- - -Skip `Selection.collapseToEnd()` during composition selection-sync when the live DOM selection has no ranges, so a cleared selection no longer throws `InvalidStateError` and unmounts the editor. diff --git a/packages/slate-react/CHANGELOG.md b/packages/slate-react/CHANGELOG.md index 7eafc6793c..9419fb4675 100644 --- a/packages/slate-react/CHANGELOG.md +++ b/packages/slate-react/CHANGELOG.md @@ -1,5 +1,11 @@ # slate-react +## 0.126.4 + +### Patch Changes + +- [#6099](https://github.com/ianstormtaylor/slate/pull/6099) [`ad04f91c`](https://github.com/ianstormtaylor/slate/commit/ad04f91c7f2e9b254bea324eefff1707b6b13bc7) Thanks [@BetterAndBetterII](https://github.com/BetterAndBetterII)! - Skip `Selection.collapseToEnd()` during composition selection-sync when the live DOM selection has no ranges, so a cleared selection no longer throws `InvalidStateError` and unmounts the editor. + ## 0.126.3 ### Patch Changes diff --git a/packages/slate-react/package.json b/packages/slate-react/package.json index 3b0283c818..7f74724d47 100644 --- a/packages/slate-react/package.json +++ b/packages/slate-react/package.json @@ -1,7 +1,7 @@ { "name": "slate-react", "description": "Tools for building completely customizable richtext editors with React.", - "version": "0.126.3", + "version": "0.126.4", "license": "MIT", "repository": "git://github.com/ianstormtaylor/slate.git", "main": "dist/index.js",