diff --git a/src/core/features/comments/pages/viewer/viewer.ts b/src/core/features/comments/pages/viewer/viewer.ts index 5879bbb9d22..dad4216ae1a 100644 --- a/src/core/features/comments/pages/viewer/viewer.ts +++ b/src/core/features/comments/pages/viewer/viewer.ts @@ -42,7 +42,6 @@ import { CoreNetwork } from '@services/network'; import moment from 'moment-timezone'; import { Subscription } from 'rxjs'; import { CoreAnimations } from '@components/animations'; -import { CoreKeyboard } from '@singletons/keyboard'; import { CoreToasts, ToastDuration } from '@services/toasts'; import { CoreLoadings } from '@services/loadings'; @@ -210,6 +209,10 @@ export class CoreCommentsViewerPage implements OnInit, OnDestroy { if (this.page == 0) { this.scrollToBottom(); } + + if (document.activeElement instanceof HTMLElement) { + document.activeElement.blur(); + } } } @@ -311,7 +314,6 @@ export class CoreCommentsViewerPage implements OnInit, OnDestroy { * @param text Comment text to add. */ async addComment(text: string): Promise { - CoreKeyboard.close(); const loadingModal = await CoreLoadings.show('core.sending', true); // Freeze the add comment button. this.sending = true;