From 09a949ca5f6b64e7aee6a6a5599fc50bf50f0db6 Mon Sep 17 00:00:00 2001 From: ggurdin <46800240+ggurdin@users.noreply.github.com> Date: Wed, 19 Nov 2025 16:09:49 -0500 Subject: [PATCH] chore: clear choreographer when user clears the input field (#4697) --- lib/pangea/choreographer/choreographer.dart | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lib/pangea/choreographer/choreographer.dart b/lib/pangea/choreographer/choreographer.dart index 9f164d35d..84ea96247 100644 --- a/lib/pangea/choreographer/choreographer.dart +++ b/lib/pangea/choreographer/choreographer.dart @@ -187,6 +187,14 @@ class Choreographer extends ChangeNotifier { notifyListeners(); } + // if the user cleared the text, reset everything + if (textController.editType == EditTypeEnum.keyboard && + _lastChecked != null && + _lastChecked!.isNotEmpty && + textController.text.isEmpty) { + clear(); + } + _lastChecked = textController.text; if (errorService.isError) return; if (textController.editType == EditTypeEnum.keyboard) {