Fixed hiding of the selection menu when user clicks on page.

References #706.