File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -681,10 +681,11 @@ class _PostEditPageState extends State<PostEditPage> with LoggerMixin {
681681 }
682682
683683 Future <void > _onListen (BuildContext context, PostEditState state) async {
684- if (state.status == PostEditStatus .failedToLoad) {
685- showSnackBar (context: context, message: context.t.postEditPage.failedToLoadData);
686- } else if (state.status == PostEditStatus .failedToUpload) {
684+ if (state.status == PostEditStatus .failedToUpload) {
687685 showSnackBar (context: context, message: state.errorText ?? context.t.general.failedToLoad);
686+ if (isMobile) {
687+ WidgetsBinding .instance.focusManager.primaryFocus? .unfocus ();
688+ }
688689 } else if (state.status == PostEditStatus .success) {
689690 // Some action succeeded.
690691 if (widget.editType.isEditingPost) {
You can’t perform that action at this time.
0 commit comments