Skip to content

Commit

Permalink
MOBILE-4616 send-message-form: Avoid call to CoreKeyboard.close()
Browse files Browse the repository at this point in the history
  • Loading branch information
alfonso-salces committed Oct 16, 2024
1 parent ce7243b commit 3c8c822
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/core/features/comments/pages/viewer/viewer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';

Expand Down Expand Up @@ -210,6 +209,10 @@ export class CoreCommentsViewerPage implements OnInit, OnDestroy {
if (this.page == 0) {
this.scrollToBottom();
}

if (document.activeElement instanceof HTMLElement) {
document.activeElement.blur();
}
}

}
Expand Down Expand Up @@ -311,7 +314,6 @@ export class CoreCommentsViewerPage implements OnInit, OnDestroy {
* @param text Comment text to add.
*/
async addComment(text: string): Promise<void> {
CoreKeyboard.close();
const loadingModal = await CoreLoadings.show('core.sending', true);
// Freeze the add comment button.
this.sending = true;
Expand Down

0 comments on commit 3c8c822

Please sign in to comment.