Use .select instead of .selectAll to propagate the bound data

(closes #5573)
This commit is contained in:
Bryan Housel
2018-12-07 17:46:14 -05:00
parent d574bfcd77
commit 7fd06f69b8

View File

@@ -138,10 +138,10 @@ export function uiField(context, presetField, entity, options) {
container = container
.merge(enter);
container.selectAll('.form-field-label > .remove-icon')
container.select('.form-field-label > .remove-icon') // propagate bound data
.on('click', remove);
container.selectAll('.form-field-label > .modified-icon')
container.select('.form-field-label > .modified-icon') // propagate bound data
.on('click', revert);
container