aboutsummaryrefslogtreecommitdiffstats
path: root/modules/ui_extra_networks.py
diff options
context:
space:
mode:
authormissionfloyd <missionfloyd@users.noreply.github.com>2023-03-21 00:04:22 +0000
committermissionfloyd <missionfloyd@users.noreply.github.com>2023-03-21 00:04:22 +0000
commit8e3ced73a8c8f435809de544e0574da265177289 (patch)
tree5fe91f488806c5465595014bc312fb129d9b379b /modules/ui_extra_networks.py
parent64fc936738d296f5eb2ff495006e298c2aeb51bf (diff)
downloadstable-diffusion-webui-gfx803-8e3ced73a8c8f435809de544e0574da265177289.tar.gz
stable-diffusion-webui-gfx803-8e3ced73a8c8f435809de544e0574da265177289.tar.bz2
stable-diffusion-webui-gfx803-8e3ced73a8c8f435809de544e0574da265177289.zip
Add event.stopPropagation() to extraNetworksShowMetadata()
Prevent bubbling the same way "replace preview" does
Diffstat (limited to 'modules/ui_extra_networks.py')
-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 10272dbb..9b7e5e65 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)}); event.stopPropagation(); return false;""") + '"'
+ metadata_onclick = '"' + html.escape(f"""return extraNetworksShowMetadata(event, {json.dumps(metadata)})""") + '"'
metadata_button = f"<div class='metadata-button' title='Show metadata' onclick={metadata_onclick}></div>"
args = {