mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-06-29 05:40:17 +08:00
fix RichTextField text delete
Signed-off-by: dom <githubaccount56556@proton.me>
This commit is contained in:
@@ -3568,10 +3568,12 @@ class EditableTextState extends State<EditableText>
|
||||
remoteValue = delta.apply(remoteValue);
|
||||
}
|
||||
|
||||
final plainText = widget.controller.plainText;
|
||||
final composing = textEditingDeltas.last.composing;
|
||||
final newValue = TextEditingValue(
|
||||
text: widget.controller.plainText,
|
||||
text: plainText,
|
||||
selection: widget.controller.newSelection,
|
||||
composing: textEditingDeltas.last.composing,
|
||||
composing: composing.end <= plainText.length ? composing : .empty,
|
||||
);
|
||||
|
||||
updateEditingValue(newValue, remoteValue: remoteValue);
|
||||
|
||||
Reference in New Issue
Block a user