Skip to content

Commit 45ff633

Browse files
Lamda303luying
andauthored
fix selection.affinity always downstream after updateEditingValue (#1682)
Co-authored-by: luying <[email protected]>
1 parent cb2ba18 commit 45ff633

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/src/widgets/raw_editor/raw_editor_state_text_input_client_mixin.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,8 @@ mixin RawEditorStateTextInputClientMixin on EditorState
203203
diff.start,
204204
diff.deleted.length,
205205
diff.inserted,
206-
value.selection,
206+
value.selection.copyWith(
207+
affinity: widget.configurations.controller.selection.affinity),
207208
);
208209

209210
// if (widget.configurations.controller.selectedFontFamily != null) {

0 commit comments

Comments
 (0)