Close Autocomplete on Clicks Outside of iFrame (February '22 Release)

We have corrected an issue where clicking outside of an iFrame does not close the autocomplete component. Typically, if a user clicks into the search bar, the autocomplete shows hardcoded prompts. Clicking outside of the search bar closes the autocomplete. However, we found a bug where clicking outside of the iFrame did not close the autocomplete. This has now been fixed.

Upgrade Implications:

If you’ve forked:

  • static/js/iframe-common.js
  • layouts/html.hbs

You will need to refork these files, or view the PR for the changes made and copy changes to your files, close autocomplete on click in parent window by yen-tt · Pull Request #1034 · yext/answers-hitchhiker-theme · GitHub.