[[ Bug 12339 ]] Make sure mouseRelease isn't dispatched after popup menu dismissal.
Merge branch 'bugfix-12339' into develop