#1272 Fix control buttons when expand actions is used

This commit is contained in:
Cohee 2023-10-21 15:17:18 +03:00
parent 25c461bd3f
commit 97d75aef73
1 changed files with 5 additions and 0 deletions

View File

@ -8073,6 +8073,11 @@ jQuery(async function () {
})
$(document).on("click", function (e) {
// Expanded options don't need to be closed
if (power_user.expand_message_actions) {
return;
}
// Check if the click was outside the relevant elements
if (!$(e.target).closest('.extraMesButtons, .extraMesButtonsHint').length) {
// Transition out the .extraMesButtons first