In chrome when user draws a box on map using left mouse and immediately right clicks, a box is created on top of the map. The only way to get rid of it is to refresh the browser. Two errors are written to console:
1- Uncaught TypeError: Cannot read property 'spatialReference' of undefined. happening in init.js
2- Uncaught TypeError: Cannot set property 'geometry' of null. happening in draw.js
Is there a fix for this?
I am using JSAPI version 3.11
Thanks.
T.
Please post your code or link to example.