fix: the selection handles remain on the screen after cutting the text (#526)

This commit is contained in:
Lucas.Xu 2023-10-10 16:57:35 +08:00 • committed by GitHub
commit 65189b7517
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -203,6 +203,7 @@ class _MobileSelectionServiceWidgetState
void _updateSelection() { void _updateSelection() {
final selection = editorState.selection; final selection = editorState.selection;
if (currentSelection.value != selection) { if (currentSelection.value != selection) {
clearSelection();
return; return;
} }