mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-21 15:56:56 +02:00
Merge enter selection into update selection for raw member list
(closes #3524)
This commit is contained in:
@@ -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 }));
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
@@ -23,7 +23,6 @@ export function uiRawMembershipEditor(context) {
|
||||
id, showBlank;
|
||||
|
||||
|
||||
|
||||
function selectRelation(d) {
|
||||
d3.event.preventDefault();
|
||||
context.enter(modeSelect(context, [d.relation.id]));
|
||||
|
||||
Reference in New Issue
Block a user