Solved! Go to Solution.
it was event bubbling that was causing the problem, fixed by using the Dojo event.stop(e) method.
View solution in original post