From 5cb4697e587f014e02f91d54e1bddd18abecb8b6 Mon Sep 17 00:00:00 2001 From: Erik Jespersen Date: Mon, 11 Nov 2024 23:24:36 -0500 Subject: [PATCH] 20241111 @Mookse - logic inAction fix --- views/assets/js/members.mjs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/views/assets/js/members.mjs b/views/assets/js/members.mjs index b05cf9d..36a88c2 100644 --- a/views/assets/js/members.mjs +++ b/views/assets/js/members.mjs @@ -410,7 +410,7 @@ function setActiveItem(itemId){ activeTitle.addEventListener('dblclick', updateTitle, { once: true }) } chatActiveItem.dataset.id = itemId - chatActiveItem.dataset.inAction = null + chatActiveItem.dataset.inAction = "false" chatActiveItem.dataset.itemId = itemId show(chatActiveItem) } @@ -915,7 +915,7 @@ function mToggleInputTextarea(){ chatInputField.style.height = 'auto' // Reset height to shrink if text is removed chatInputField.style.height = chatInputField.scrollHeight + 'px' // Set height based on content mToggleSubmitButtonState() - if(chatActiveItem.dataset.inAction) + if(chatActiveItem.dataset.inAction==='true') if(!chatInputField.value.length){ show(chatActiveItem) show(chatActiveThumb)