mirror of
https://github.com/FoggedLens/iD.git
synced 2026-06-04 05:58:09 +02:00
Manual removal of the hover-highlight styling when clicking on a relation or member in the sidebar.
Closes #5521
This commit is contained in:
@@ -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())) {
|
||||
|
||||
@@ -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]));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user