From 058a6b087da31208210e72bd2eaf29132b48ebad Mon Sep 17 00:00:00 2001 From: Quincy Morgan <2046746+quincylvania@users.noreply.github.com> Date: Thu, 15 Oct 2020 13:58:57 -0400 Subject: [PATCH] Fix change event for d3 6 --- modules/ui/sections/photo_overlays.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/modules/ui/sections/photo_overlays.js b/modules/ui/sections/photo_overlays.js index 2986d6083..ec93a4834 100644 --- a/modules/ui/sections/photo_overlays.js +++ b/modules/ui/sections/photo_overlays.js @@ -169,7 +169,7 @@ export function uiSectionPhotoOverlays(context) { var data = context.photos().dateFilters(); function filterEnabled(d) { - return context.photos().dateFilterValue(d); + return context.photos().dateFilterValue(d); } var ul = selection @@ -218,7 +218,7 @@ export function uiSectionPhotoOverlays(context) { .property('value', function(d) { return context.photos().dateFilterValue(d); }) - .on('change', function(d) { + .on('change', function(d3_event, d) { var value = d3_select(this).property('value'); context.photos().setDateFilter(d, value, true); }); @@ -230,7 +230,7 @@ export function uiSectionPhotoOverlays(context) { function drawUsernameFilter(selection) { function filterEnabled() { - return context.photos().username(); + return context.photos().username(); } var ul = selection .selectAll('.layer-list-username-filter') @@ -277,7 +277,7 @@ export function uiSectionPhotoOverlays(context) { var value = d3_select(this).property('value'); context.photos().setUsernameFilter(value, true); }); - + li .merge(liEnter) .classed('active', filterEnabled);