Switching drawing tools in a WebAPI for JavaScript application causes the error, "TypeError: ‘undefined’ is not an object (evaluating ‘this._activeTool._enabled)."
Steps to reproduce:
1. Select a template from the template picker
2. Select another drawing tool using the dropdown on the toolbar (freehand, triangle etc).
3. Try to draw on the map and note that there isn’t a tooltip and you can’t draw.
4. Click the template in the template picker again and the following error appears in the console:
TypeError: ‘undefined’ is not an object (evaluating ‘this._activeTool._enabled) and points to Editor-all.js.