Merge enter selection into update selection for raw member list

(closes #3524)
This commit is contained in:
Bryan Housel
2016-10-26 11:31:19 -04:00
parent 4f733e1b96
commit b93e9f1a1a
2 changed files with 5 additions and 4 deletions
+5 -3
View File
@@ -77,9 +77,11 @@ export function uiRawMemberEditor(context) {
var list = wrap.selectAll('.member-list')
.data([0]);
list.enter()
list = list.enter()
.append('ul')
.attr('class', 'member-list');
.attr('class', 'member-list')
.merge(list);
var items = list.selectAll('li')
.data(memberships, function(d) {
@@ -116,7 +118,7 @@ export function uiRawMemberEditor(context) {
} else {
d3.select(this).append('label')
.attr('class', 'form-label')
.text(t('inspector.incomplete'));
.text(t('inspector.incomplete', { id: d.id }));
}
});
-1
View File
@@ -23,7 +23,6 @@ export function uiRawMembershipEditor(context) {
id, showBlank;
function selectRelation(d) {
d3.event.preventDefault();
context.enter(modeSelect(context, [d.relation.id]));