fix: when opens the ctx menu for move units closes the ctx menu on outside click