Custom HTML Within Leaflet Map
Your events are propagating to the map. Leaflet provides DomEvent methods to prevent this, for example (using jQuery):
$('div').each(function () {
L.DomEvent.on(this,'mousedown',L.DomEvent.stop);
L.DomEvent.on(this,'click',L.DomEvent.stop);
L.DomEvent.on(this,'touchstart',L.DomEvent.stop);
});
UDPATE
Based on comments below, the following should also work in place of the code above:
L.DomEvent.disableClickPropagation();
Reference: http://leafletjs.com/reference.html#domevent-disableclickpropagation