Skip to content

Commit

Permalink
Re-run CI
Browse files Browse the repository at this point in the history
  • Loading branch information
ben10code committed Aug 10, 2021
1 parent 5e802e6 commit a37ecb6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .changeset/new-trainers-peel.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
'slate-react': patch
---

Fix crash when unmounting an editor rendered within a React portal. The issue was arising at unmount time, because `getRootNode` returned the dettached portal node and it is not an instance of `Document` or `ShadowRoot`. As a fix, `getDocumentOrShadowRoot` has been refactored to return a root node instead of throwing. In sum, this patch fixes a regression bug caused by https://github.com/ianstormtaylor/slate/pull/3749/
Fix crash when unmounting an editor rendered within a React portal. The issue was arising at unmount time, because `getRootNode` returned the dettached portal node and it is not an instance of `Document` or `ShadowRoot`. As a fix, `getDocumentOrShadowRoot` has been refactored to return a root node instead of throwing. In sum, this patch fixes a regression bug introduced by https://github.com/ianstormtaylor/slate/pull/3749/

0 comments on commit a37ecb6

Please sign in to comment.