From 62f7681370098fed8478e74f49cf59da9e9ba981 Mon Sep 17 00:00:00 2001 From: Bryan Housel Date: Wed, 14 Jan 2015 09:57:23 -0500 Subject: [PATCH] Remove row when clicking trash icon in raw tag editor (closes #2418) Dispatching `event.change(tag)` does update the tag editor in most cases, but it is not sufficient to remove a blank row with no tags.. --- js/id/ui/raw_tag_editor.js | 1 + 1 file changed, 1 insertion(+) diff --git a/js/id/ui/raw_tag_editor.js b/js/id/ui/raw_tag_editor.js index 8bacb7b89..f6b8224f1 100644 --- a/js/id/ui/raw_tag_editor.js +++ b/js/id/ui/raw_tag_editor.js @@ -192,6 +192,7 @@ iD.ui.RawTagEditor = function(context) { var tag = {}; tag[d.key] = undefined; event.change(tag); + d3.select(this.parentNode).remove(); } function addTag() {