The additional code here is no longer needed since we've found a solution for clicking outside of the dropdown to keep the Find bar open with focus restored to the Search text field.