Analytics search event fires when exising search term is repeated #4708
Labels
💻 aspect: code
Concerns the software code in the repository
🛠 goal: fix
Bug fix
🟩 priority: low
Low priority and doesn't need to be rushed
🧱 stack: frontend
Related to the Nuxt frontend
Description
Our analytics event for submitting a search fires on the
/search
route even when the search term is "cleared" by selecting the text in the input, deleting it, and pressing enter or the search button.Reproduction
In writing this, I remembered that it is technically impossible to clear the search bar, so this issue really happens when resubmitting the current search term, not when clearing.
The text was updated successfully, but these errors were encountered: