Fix SD wand entry not always being clickable

d84fef047821d2202cda629735e4ddcc8e9ff7d6

Wolfsblvt <wolfsblvt@gmail.com>

1 files changed, +1 -1Showing whitespace changes
public/scripts/extensions/stable-diffusion/index.js+1 -1
@@ -3396,7 +3396,7 @@ async function addSDGenButtons() {
3396 $(document).on('click touchend', function (e) {3396 $(document).on('click touchend', function (e) {
3397 const target = $(e.target);3397 const target = $(e.target);
3398 if (target.is(dropdown) || target.closest(dropdown).length) return;3398 if (target.is(dropdown) || target.closest(dropdown).length) return;
3399 if (target.is(button) && !dropdown.is(':visible') && $('#send_but').is(':visible')) {3399 if ((target.is(button) || target.closest(button).length) && !dropdown.is(':visible') && $('#send_but').is(':visible')) {
3400 e.preventDefault();3400 e.preventDefault();
34013401
3402 dropdown.fadeIn(animation_duration);3402 dropdown.fadeIn(animation_duration);