From 64bdaae14233d1705abe161a680fa7a1b1b087dc Mon Sep 17 00:00:00 2001 From: Alexander Zinchuk Date: Mon, 23 Aug 2021 03:38:25 +0300 Subject: [PATCH] Composer: Do not blur when clicking on messages on Android --- src/components/middle/helpers/preventMessageInputBlur.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/middle/helpers/preventMessageInputBlur.ts b/src/components/middle/helpers/preventMessageInputBlur.ts index 2324daa6..67e25cef 100644 --- a/src/components/middle/helpers/preventMessageInputBlur.ts +++ b/src/components/middle/helpers/preventMessageInputBlur.ts @@ -1,11 +1,11 @@ import React from '../../../lib/teact/teact'; import { EDITABLE_INPUT_ID } from '../../../config'; -import { IS_SINGLE_COLUMN_LAYOUT } from '../../../util/environment'; +import { IS_IOS } from '../../../util/environment'; export function preventMessageInputBlur(e: React.MouseEvent) { if ( - IS_SINGLE_COLUMN_LAYOUT + IS_IOS || !document.activeElement || document.activeElement.id !== EDITABLE_INPUT_ID || e.target !== e.currentTarget