Fix regression where hovering over items in the relation dropdown wouldn't highlight them in the map (close #8134)

This commit is contained in:
Quincy Morgan
2020-10-29 09:57:38 -04:00
parent 8b6ad03a58
commit b2b10ccebd

View File

@@ -39,10 +39,10 @@ export function uiSectionRawMembershipEditor(context) {
var nearbyCombo = uiCombobox(context, 'parent-relation')
.minItems(1)
.fetcher(fetchNearbyRelations)
.itemsMouseEnter(function(d) {
.itemsMouseEnter(function(d3_event, d) {
if (d.relation) utilHighlightEntities([d.relation.id], true, context);
})
.itemsMouseLeave(function(d) {
.itemsMouseLeave(function(d3_event, d) {
if (d.relation) utilHighlightEntities([d.relation.id], false, context);
});
var _inChange = false;