Manual removal of the hover-highlight styling when clicking on a relation or member in the sidebar.

Closes #5521
This commit is contained in:
Quincy Morgan
2018-11-25 18:15:33 -05:00
parent 329f54ff5e
commit b3e71c7522
2 changed files with 7 additions and 0 deletions
+3
View File
@@ -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())) {
+4
View File
@@ -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]));
}