Page MenuHomePhabricator

Empty Search suggestions do not reappear after typing and clearing a search term
Closed, ResolvedPublic3 Estimated Story PointsBUG REPORT

Description

Steps to replicate the issue (include links if applicable):

What happens?:

search.gif (567×1 px, 470 KB)

Search for pages footer still shows and empty search does not

What should have happened instead?:
Empty search suggestions should show

Software version (on Special:Version page; skip for WMF-hosted wikis like Wikipedia):

Other information (browser name/version, screenshots, etc.):

Requirement

Empty search suggestions should reappear when a user deletes a query and refocuses the search input.

BDD

Feature: Empty search suggestions visibility

Scenario: Re-focusing an empty search input

Given I am on the test wiki main page
And I have typed a search term that yields no results
And I delete the search term completely
When I refocus the search input
Then empty search suggestions should appear again

Test Steps

Test Case 1: Empty search suggestions reappear after clearing input

  1. Visit https://test.wikipedia.org/wiki/Main_Page
  2. Focus the search bar.
  3. Type dsassaassasasasaas (or any term that returns no results).
  4. Delete the entire input using backspace.
  5. Click outside the search bar to unfocus it.
  6. Focus the search bar again.
  7. AC1: Empty search suggestions are shown once the input is empty and focused again.

QA Results - Beta

ACStatusDetails
1T395385#10927021

QA Results - Prod

ACStatusDetails
1T395385#10942964

Details

Related Changes in Gerrit:

Event Timeline

Jdlrobson renamed this task from Search suggestions do not reappear after typing a search term to Empty Search suggestions do not reappear after typing and clearing a search term.May 27 2025, 10:45 PM
ovasileva triaged this task as Medium priority.May 28 2025, 6:47 PM
Jdlrobson changed the task status from Open to In Progress.May 30 2025, 9:25 PM
bwang raised the priority of this task from Medium to High.Jun 4 2025, 4:24 PM
bwang set the point value for this task to 3.
bwang moved this task from Q4 to Sprint Backlog on the Web-Team board.

Change #1153696 had a related patch set uploaded (by Bernard Wang; author: Bernard Wang):

[mediawiki/core@master] Make sure to clear search input and suggestions when search overlay is exited

https://gerrit.wikimedia.org/r/1153696

LMora-WMF subscribed.

I uploaded a new patchset and Bernard will review

Change #1153696 merged by jenkins-bot:

[mediawiki/core@master] Convert TAHS to only use Composition API

https://gerrit.wikimedia.org/r/1153696

Edtadros subscribed.

Test Result - Beta

Status: ✅ PASS
Environment: beta
OS: macOS Sequoia 15.5
Browser: Chrome Canary (latest as of test date)
Device: MS
Emulated Device: NA

Test Steps

Test Case 1: Empty search suggestions reappear after clearing input

  1. Visit https://test.wikipedia.org/wiki/Main_Page
  2. Focus the search bar.
  3. Type dsassaassasasasaas (or any term that returns no results).
  4. Delete the entire input using backspace.
  5. Click outside the search bar to unfocus it.
  6. Focus the search bar again.
  7. AC1: Empty search suggestions are shown once the input is empty and focused again.

screenshot 8.mov.gif (778×1 px, 685 KB)

Looks good, resolving!

Test Result - Prod

Status: ✅ PASS
Environment: beta
OS: macOS Sequoia 15.5
Browser: Chrome Canary (latest as of test date)
Device: MS
Emulated Device: NA

Test Steps

Test Case 1: Empty search suggestions reappear after clearing input

  1. Visit https://ca.wikipedia.org/wiki/Portada
  2. Focus the search bar.
  3. Type dsassaassasasasaas (or any term that returns no results).
  4. Delete the entire input using backspace.
  5. Click outside the search bar to unfocus it.
  6. Focus the search bar again.
  7. AC1: Empty search suggestions are shown once the input is empty and focused again.

screenshot 15.mov.gif (766×1 px, 2 MB)