Skip to content

Commit

Permalink
Use .select instead of .selectAll to propagate the bound data
Browse files Browse the repository at this point in the history
(closes #5573)
  • Loading branch information
bhousel committed Dec 7, 2018
1 parent d574bfc commit 7fd06f6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/ui/field.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7fd06f6

Please sign in to comment.