From ca2684fcf38e757ef87c9e8389bf0ff2e6d6e416 Mon Sep 17 00:00:00 2001 From: Connor Turland Date: Thu, 26 Oct 2017 19:09:28 -0400 Subject: [PATCH] event listener was getting lost cuz react --- frontend/src/Metamaps/Map/InfoBox.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/frontend/src/Metamaps/Map/InfoBox.js b/frontend/src/Metamaps/Map/InfoBox.js index 3f6fcd9c..d3edc16d 100644 --- a/frontend/src/Metamaps/Map/InfoBox.js +++ b/frontend/src/Metamaps/Map/InfoBox.js @@ -116,7 +116,9 @@ const InfoBox = { }, attachEventListeners: function() { var self = InfoBox - + $('.mapInfoBox').click(function(event) { + event.stopPropagation() + }) $('.mapInfoBox.canEdit .best_in_place').best_in_place() // because anyone who can edit the map can change the map title