When the search footer is clicked, a search-result-click event is emitted with data that includes the index of the search result that was clicked.
Current behavior: The index -1 is included in this data
Expected behavior: In this case, the index should be the actual index of the footer item within the menu items (for example, if there are 10 results, the footer item will have an index of 10 because it's tacked on to the end of the results list).
Acceptance criteria
- When the footer item is clicked, the index in the SearchResultClickEvent is the index of the footer item, i.e. the same as the number of results.