From b3e71c7522c3aac9e4d154863ac93e99017e4c89 Mon Sep 17 00:00:00 2001 From: Quincy Morgan Date: Sun, 25 Nov 2018 18:15:33 -0500 Subject: [PATCH] Manual removal of the hover-highlight styling when clicking on a relation or member in the sidebar. Closes #5521 --- modules/ui/raw_member_editor.js | 3 +++ modules/ui/raw_membership_editor.js | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/modules/ui/raw_member_editor.js b/modules/ui/raw_member_editor.js index 3188a9854..656227c79 100644 --- a/modules/ui/raw_member_editor.js +++ b/modules/ui/raw_member_editor.js @@ -45,6 +45,9 @@ export function uiRawMemberEditor(context) { function selectMember(d) { d3_event.preventDefault(); + // remove the hover-highlight styling + utilHighlightEntity(d.id, false, context); + var entity = context.entity(d.id); var mapExtent = context.map().extent(); if (!entity.intersects(mapExtent, context.graph())) { diff --git a/modules/ui/raw_membership_editor.js b/modules/ui/raw_membership_editor.js index 90a09cf75..123907bb7 100644 --- a/modules/ui/raw_membership_editor.js +++ b/modules/ui/raw_membership_editor.js @@ -35,6 +35,10 @@ export function uiRawMembershipEditor(context) { function selectRelation(d) { d3_event.preventDefault(); + + // remove the hover-highlight styling + utilHighlightEntity(d.relation.id, false, context); + context.enter(modeSelect(context, [d.relation.id])); }