Skip to content

Commit

Permalink
20241111 @Mookse
Browse files Browse the repository at this point in the history
- logic inAction fix
  • Loading branch information
Mookse committed Nov 12, 2024
1 parent f6b7f39 commit 5cb4697
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions views/assets/js/members.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 5cb4697

Please sign in to comment.