mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-20 23:44:47 +02:00
Don't trigger hover events on nonentities
This commit is contained in:
@@ -44,7 +44,7 @@ iD.behavior.Hover = function(context) {
|
||||
selection.selectAll('.hover-suppressed')
|
||||
.classed('hover-suppressed', false);
|
||||
|
||||
if (target && target.type) {
|
||||
if (target instanceof iD.Entity) {
|
||||
var selector = '.' + target.id;
|
||||
|
||||
if (target.type === 'relation') {
|
||||
|
||||
Reference in New Issue
Block a user