fix: missing To field when only other fields are filled

This commit is contained in:
dab246
2025-11-19 12:02:13 +07:00
committed by Dat H. Pham
parent a9c8dfa6a8
commit 6f6284c21f
5 changed files with 79 additions and 16 deletions
@@ -591,7 +591,7 @@ class ComposerController extends BaseController
richTextMobileTabletController?.richTextController.hideRichTextView();
}
autoCreateEmailTag();
triggerHideRecipientsFiledsWhenUnfocus();
triggerHideRecipientsFieldsWhenUnfocus();
}
}
@@ -1440,7 +1440,7 @@ class ComposerController extends BaseController
void clickOutsideComposer() {
clearFocus();
triggerHideRecipientsFiledsWhenUnfocus();
triggerHideRecipientsFieldsWhenUnfocus();
if (PlatformInfo.isWeb) {
refocusKeyboardShortcutFocus();
}
@@ -1718,7 +1718,7 @@ class ComposerController extends BaseController
richTextMobileTabletController?.richTextController.showDeviceKeyboard);
}
autoCreateEmailTag();
triggerHideRecipientsFiledsWhenUnfocus();
triggerHideRecipientsFieldsWhenUnfocus();
}
void _onChangeCursorOnMobile(List<int>? coordinates, BuildContext context) {
@@ -1850,7 +1850,7 @@ class ComposerController extends BaseController
popBack();
}
autoCreateEmailTag();
triggerHideRecipientsFiledsWhenUnfocus();
triggerHideRecipientsFieldsWhenUnfocus();
}
FocusNode? getNextFocusOfToEmailAddress() {
@@ -2302,13 +2302,6 @@ class ComposerController extends BaseController
);
}
void handleEnableRecipientsInputAction(bool isEnabled) {
fromRecipientState.value = isEnabled ? PrefixRecipientState.disabled : PrefixRecipientState.enabled;
ccRecipientState.value = isEnabled ? PrefixRecipientState.disabled : PrefixRecipientState.enabled;
bccRecipientState.value = isEnabled ? PrefixRecipientState.disabled : PrefixRecipientState.enabled;
replyToRecipientState.value = isEnabled ? PrefixRecipientState.disabled : PrefixRecipientState.enabled;
}
@override
Future<void> onBeforeReconnect() async {
if (mailboxDashBoardController.accountId.value != null &&