I'm also having this issue but not using custom code: If I try to draw a point using esri's Draw widget or anything else that requires me to click, the tool works, but the popup will appear.
Would like to have the popups suppressed any time these drawing-required tool widgets are in use...