Changed how the menu decides to close itself when it detects a click in the designer.