Skip to content

Commit

Permalink
Replace tag documentation when tag has changed
Browse files Browse the repository at this point in the history
(closes #4209)
  • Loading branch information
bhousel committed Sep 20, 2017
1 parent 0edcc9d commit ccf452a
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion modules/ui/tag_reference.js
Original file line number Diff line number Diff line change
Expand Up @@ -170,8 +170,14 @@ export function uiTagReference(tag) {


tagReference.body = function(selection) {

var tagid = tag.rtype || (tag.key + '-' + tag.value);

body = selection.selectAll('.tag-reference-body')
.data([0]);
.data([tagid], function(d) { return d; });

body.exit()
.remove();

body = body.enter()
.append('div')
Expand Down

0 comments on commit ccf452a

Please sign in to comment.