Reload date filter values after input change

This commit is contained in:
Quincy Morgan
2020-10-15 16:52:46 -04:00
parent 730e16c1cf
commit 88b6d4a82e
+7 -2
View File
@@ -220,11 +220,16 @@ export function uiSectionPhotoOverlays(context) {
utilGetSetValue(d3_select(this), context.photos().dateFilterValue(d) || '');
})
.on('change', function(d3_event, d) {
var value = d3_select(this).property('value');
var value = utilGetSetValue(d3_select(this)).trim();
context.photos().setDateFilter(d, value, true);
// reload the displayed dates
li.selectAll('input')
.each(function(d) {
utilGetSetValue(d3_select(this), context.photos().dateFilterValue(d) || '');
});
});
li
li = li
.merge(liEnter)
.classed('active', filterEnabled);
}