Allow to close the Share modal by clicking on the background.