Stop propagation on WI entry delete

This commit is contained in:
Cohee 2024-08-03 00:00:15 +03:00
parent c9acea8522
commit 664447d585
1 changed files with 2 additions and 1 deletions

View File

@ -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;