From 1f1c2e0b2b17fda080e4740345c49dcf8b4f0a3d Mon Sep 17 00:00:00 2001 From: Mani <12841290+infinyte7@users.noreply.github.com> Date: Sat, 17 Jul 2021 03:23:06 +0800 Subject: [PATCH] Improved delete option --- docs/pwa/js/index.js | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/docs/pwa/js/index.js b/docs/pwa/js/index.js index eb5daf7..4ae3bcf 100644 --- a/docs/pwa/js/index.js +++ b/docs/pwa/js/index.js @@ -267,10 +267,25 @@ function removePolygon() { isDeleting = false; svg.addEventListener('click', deleteHandler, false); document.getElementById("removeBtnIcon").style.color = "#fdd835"; + + // add event listner to all child node of svg + for (i=0; i