Changed the conditions for the cancel event function so that the ULS popup does not close when a descendant element of the trigger is clicked. Was erroneously merged to gerrit as https://gerrit.wikimedia.org/r/#/c/261810/, I forgot that this was an upstream library. https://phabricator.wikimedia.org/T122722