TF-1288 Fix email detailed view automatically closes when focusing on composer's editor on the web

This commit is contained in:
dab246
2023-01-27 11:36:47 +07:00
committed by Dat Vu
parent 2faf670447
commit 16d360bb00
2 changed files with 7 additions and 4 deletions
@@ -43,10 +43,7 @@ class EmailView extends GetWidget<SingleEmailController>
@override
Widget build(BuildContext context) {
return WillPopScope(
onWillPop: () async {
controller.closeEmailView(context);
return false;
},
onWillPop: () => controller.backButtonPressedCallbackAction.call(context),
child: Scaffold(
backgroundColor: responsiveUtils.isWebDesktop(context)
? AppColor.colorBgDesktop