Search opens again on every click

AI-generated summary

A bug report titled ‘Search opens again on every click’ has been filed, describing an issue where search functionality unexpectedly reopens after using the browser’s back button, particularly on tablets and laptops. Users Moin and sam confirmed the problem, with Moin providing steps to reproduce it. The issue was resolved in a GitHub pull request 35876, and cvx confirmed the fix will be deployed soon, with Moin asking about deployment to meta and cvx responding that it will be deployed shortly.

This happens to me mostly on my tablet, but it can also be reproduced on my laptop. After using the back button of the browser while search was open, every click/tab opens/closes the search. On the tablet, that results in scrolling becoming very annoying. Reloading the site is the only way to stop this, I have found so far.

Steps to reproduce:

  1. Click on the :magnifying_glass_tilted_left: icon in the header
  2. Type “testing” and press enter to search
  3. Click the button for full-page search
  4. Click on the first result
  5. Click on the :magnifying_glass_tilted_left: icon in the header
  6. Use the back button of the browser
  7. Click anywhere (you can do that several times)
4 Likes

Confirmed, this is quite annoying, I think there must be an event we are not properly cleaning up when we hit back.

2 Likes

Fixed in FIX: Clean up search dropdown and fix reopening bug by cvx · Pull Request #35876 · discourse/discourse · GitHub, will be deployed to meta shortly.

Thank you for reporting the issue!

5 Likes

I guess ‘shortly’ is a bit longer today?

4 Likes

Shortly-ish :wink: It’s deployed now!

5 Likes

This topic was automatically closed after 24 hours. New replies are no longer allowed.