Replace tag documentation when tag has changed

(closes #4209)
This commit is contained in:
Bryan Housel
2017-09-20 10:35:25 -04:00
parent 0edcc9d328
commit ccf452acf6

View File

@@ -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')