Minor Changes
- #6327
89a74deThanks @dylans! - Add a controlledvalueprop toSlate. Pass the value fromonValueChangeback in, and Slate recognizes that exact object and doesn't apply it again. Any other value is applied as a change from outside the editor througheditor.setChildren, in a layout effect, so the selection and history stay valid. Values passed in aren't reported throughonValueChange. Updates wait while the user is composing text or Android has pending input, and only the latest is applied.valueandinitialValuetogether throw.
Patch Changes
- #6325
6cb0eb4Thanks @dylans! - A DOM selection change made just before the editor loses focus now reacheseditor.selection. Selection changes are processed a little later than they happen, and since 0.142 changes processed after blur were ignored, so for example clicking an element whose handler blurs the editor could leaveeditor.selectionwhere it was before the click. Blur now processes any pending selection change first.