Disable search button fix, CORE-609

By the way, are these changes to `triggerModalSearch` the result of removing a function that was defined twice? I was looking at all these changes trying to figure out how they relate to the commit message, so please next time, can you split cleanup like this into a separate commit?