I have a map with a clickListener that is setup initially via map.on to handle the standard infoTemplate information for layers that are turned on in an info WIndow. When I try to put the measurement tool on my page (using 3.13) I use a .remove for the click listener when the tool opens and am able to do the measure events no problem.
However when the measure ends and I'm not sure if this should be when the close my form with the widget or on measure-end I am not able to re add my infoTemplate clickListener back in to show the info Window.
I've seen a couple of examples that use dojo aspect or dojo connect but I gather dojo connect and disconnect are old. I can't seem to hit on a good way to do it or figure out the placement. Does anyone out there have a working measurement/info swap method that works? I'm thinking I may have to scrap the requested measurement functionality if its not possible. I'm using bootstrap / jquery / 3.13 with some amount of dojo mixed in to use some of the easier esri widget items where needed.