From d84fef047821d2202cda629735e4ddcc8e9ff7d6 Mon Sep 17 00:00:00 2001 From: Wolfsblvt Date: Sat, 3 Aug 2024 00:10:46 +0200 Subject: [PATCH] Fix SD wand entry not always being clickable --- public/scripts/extensions/stable-diffusion/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/scripts/extensions/stable-diffusion/index.js b/public/scripts/extensions/stable-diffusion/index.js index 83ec179ad..cc385f60a 100644 --- a/public/scripts/extensions/stable-diffusion/index.js +++ b/public/scripts/extensions/stable-diffusion/index.js @@ -3396,7 +3396,7 @@ async function addSDGenButtons() { $(document).on('click touchend', function (e) { const target = $(e.target); if (target.is(dropdown) || target.closest(dropdown).length) return; - if (target.is(button) && !dropdown.is(':visible') && $('#send_but').is(':visible')) { + if ((target.is(button) || target.closest(button).length) && !dropdown.is(':visible') && $('#send_but').is(':visible')) { e.preventDefault(); dropdown.fadeIn(animation_duration);