Skip to content

Commit

Permalink
Fix DrawTool deleting tag closing modal bug
Browse files Browse the repository at this point in the history
  • Loading branch information
tariqksoliman committed Sep 21, 2023
1 parent 340f6c0 commit 0d2b839
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/essence/Tools/Draw/DrawTool_Files.js
Original file line number Diff line number Diff line change
Expand Up @@ -1256,7 +1256,8 @@ var Files = {
$('.drawToolFileEditOnTagClose').off('click')
$('.drawToolFileEditOnTagClose').on(
'click',
function () {
function (e) {
e.stopPropagation()
if (
$(this).parent().parent().children()
.length === 1
Expand Down Expand Up @@ -1310,7 +1311,8 @@ var Files = {
}
)

$('.drawToolFileEditOnTagClose').on('click', function () {
$('.drawToolFileEditOnTagClose').on('click', function (e) {
e.stopPropagation()
const removedTag = $(this).parent().attr('tag')
const removedType = $(this).parent().attr('type')
$(this).parent().remove()
Expand Down

0 comments on commit 0d2b839

Please sign in to comment.