From f673776b6149d6e94bc9f0d675acc48050fa1fcd Mon Sep 17 00:00:00 2001 From: WASRUSGEN Date: Thu, 28 May 2026 18:32:44 +0300 Subject: [PATCH] =?UTF-8?q?fix:=20elenaIntent=20question=20=E2=80=94=20app?= =?UTF-8?q?end=20to=20chatwrap=20when=20el-step1=20is=20hidden=20(transfer?= =?UTF-8?q?=20context)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mockup.html | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/mockup.html b/mockup.html index 35a091f..e93a5d9 100644 --- a/mockup.html +++ b/mockup.html @@ -3790,11 +3790,14 @@ function elenaIntent(intent) { // question — показываем текстовое поле без загрузки if (intent === 'question') { + var step1El = document.getElementById('el-step1'); document.querySelectorAll('#el-step1 .int-card').forEach(function(c){ c.style.opacity='.45'; c.style.pointerEvents='none'; }); var qBox = document.createElement('div'); qBox.className = 'msg'; qBox.innerHTML = '
Елена
Конечно — спрашивайте 💛 Опишите ситуацию, я отвечу по нормам ГК/ТК/ЗоЗПП. Или включите микрофон 🎙
'; - document.getElementById('el-step1').appendChild(qBox); + // Если el-step1 скрыт (трансфер из mini-chat) — добавляем в chatwrap + var target = (step1El && step1El.style.display !== 'none') ? step1El : (document.querySelector('.chatwrap') || step1El); + if (target) target.appendChild(qBox); return; }