aboutsummaryrefslogtreecommitdiffstats
path: root/modules
diff options
context:
space:
mode:
authormissionfloyd <missionfloyd@users.noreply.github.com>2023-03-20 01:30:28 +0000
committerGitHub <noreply@github.com>2023-03-20 01:30:28 +0000
commit64fc936738d296f5eb2ff495006e298c2aeb51bf (patch)
tree4435d380d9cc83d4de3c88ccec973fbf2d2409cc /modules
parenta9fed7c364061ae6efb37f797b6b522cb3cf7aa2 (diff)
downloadstable-diffusion-webui-gfx803-64fc936738d296f5eb2ff495006e298c2aeb51bf.tar.gz
stable-diffusion-webui-gfx803-64fc936738d296f5eb2ff495006e298c2aeb51bf.tar.bz2
stable-diffusion-webui-gfx803-64fc936738d296f5eb2ff495006e298c2aeb51bf.zip
Don't bubble when metadata_button is clicked
Diffstat (limited to 'modules')
-rw-r--r--modules/ui_extra_networks.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/ui_extra_networks.py b/modules/ui_extra_networks.py
index cdfd6f2a..10272dbb 100644
--- a/modules/ui_extra_networks.py
+++ b/modules/ui_extra_networks.py
@@ -127,7 +127,7 @@ class ExtraNetworksPage:
metadata_button = ""
metadata = item.get("metadata")
if metadata:
- metadata_onclick = '"' + html.escape(f"""extraNetworksShowMetadata({json.dumps(metadata)}); return false;""") + '"'
+ metadata_onclick = '"' + html.escape(f"""extraNetworksShowMetadata({json.dumps(metadata)}); event.stopPropagation(); return false;""") + '"'
metadata_button = f"<div class='metadata-button' title='Show metadata' onclick={metadata_onclick}></div>"
args = {