Fixed click issues on ios where the menu was not being closed on clicking elsewhere