I have a draw window using the dijit/form/Button with 3.18. All of these seem to work as expected except the Polygon. A significant part of the time I get the error: Unhandled exception at line 7, column 371 in http://js.arcgis.com/3.18/esri/toolbars/edit.js Unable to activate the tool ...
You might have to post your code.