Fix tap on document to close menu event.