Leaflet map events will not tirgger when a diagram show on the top of the map

I have created a custom Leaflet layer which with some simple popup window of Leaflet polygon. The popup window will show when mouse point to the polygon.

I also make some Leaflet icon with click events, but both the popup window and click events will not trigger unless I set the style of the diagram div to “display:none”.

I’ve install the LeafletTool from this sample http://gojs.net/latest/samples/leaflet.html ,but it doesn’t work.

I am new to JavaScript and GoJS and my English is not very good, thanks for helping.

If you implemented the popup window as an HTML element that is in front of the Diagram’s HTML DIV element, that’s keeping events from getting to the Diagram.