Add a mask when the popup menu is displayed. Tapping in the mask will close the popup menu.
The popup doesn't work properly when the body scrolls and the mask should really be done as a separate component and re-used elsewhere (the info pages) to avoid duplication.