12479: Re-added 'key' to the tag key div, because the lack of it
authorLucas Di Pentima <ldipentima@veritasgenetics.com>
Mon, 15 Jan 2018 21:16:23 +0000 (18:16 -0300)
committerLucas Di Pentima <ldipentima@veritasgenetics.com>
Mon, 15 Jan 2018 21:16:23 +0000 (18:16 -0300)
produces an odd behavior when removing some existing tag using
the trash button and then trying to add a new tag.

Arvados-DCO-1.1-Signed-off-by: Lucas Di Pentima <ldipentima@veritasgenetics.com>

apps/workbench/app/assets/javascripts/components/edit_tags.js

index dbbce15490afe859a1432405f67687030edbdc27..b70fd09ecdadffdffe3b45da26e42b238f6e8c5c 100644 (file)
@@ -102,7 +102,7 @@ window.TagEditorRow = {
             // Tag key
             m("td", [
                 vnode.attrs.editMode ?
-                m("div", [
+                m("div", {key: 'key-'+vnode.attrs.name()}, [
                     m(inputComponent, {
                         options: nameOpts,
                         value: vnode.attrs.name,