From 664447d585900fdd71ac173b49eaae6e393bf5e2 Mon Sep 17 00:00:00 2001 From: Cohee <18619528+Cohee1207@users.noreply.github.com> Date: Sat, 3 Aug 2024 00:00:15 +0300 Subject: [PATCH] Stop propagation on WI entry delete --- public/scripts/world-info.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/public/scripts/world-info.js b/public/scripts/world-info.js index 33e7f86f2..d7e52ce41 100644 --- a/public/scripts/world-info.js +++ b/public/scripts/world-info.js @@ -3009,7 +3009,8 @@ function getWorldEntry(name, data, entry) { // delete button const deleteButton = template.find('.delete_entry_button'); deleteButton.data('uid', entry.uid); - deleteButton.on('click', async function () { + deleteButton.on('click', async function (e) { + e.stopPropagation(); const uid = $(this).data('uid'); const deleted = await deleteWorldInfoEntry(data, uid); if (!deleted) return;