Fix dice extension menu position

This commit is contained in:
Cohee 2024-06-30 21:19:07 +03:00
parent 8ce2af16fb
commit 1d780feb08
1 changed files with 1 additions and 1 deletions

View File

@ -374,7 +374,7 @@ async function addExtensionsButtonAndMenu() {
$('html').on('click', function (e) {
const clickTarget = $(e.target);
const noCloseTargets = ['#sd_gen', '#extensionsMenuButton'];
const noCloseTargets = ['#sd_gen', '#extensionsMenuButton', '#roll_dice'];
if (dropdown.is(':visible') && !noCloseTargets.some(id => clickTarget.closest(id).length > 0)) {
$(dropdown).fadeOut(animation_duration);
}