Making WordPress.org

Opened 7 weeks ago

Closed 7 weeks ago

#8238 closed defect (bug) (worksforme)

Search results persist after clearing query on Showcase page

Reported by: khushipatel15's profile khushipatel15 Owned by:
Milestone: Priority: normal
Component: Showcase Keywords:
Cc:

Description

Steps to Reproduce

  1. Go to https://wordpress.org/showcase/
  2. Type a keyword in the search bar (e.g., "blog")
  3. Press Enter — filtered results appear correctly
  4. Clear the search input completely (backspace or select-all + delete)
  5. Press Enter again with an empty search bar

Expected Behavior

All showcase entries should be displayed (unfiltered), as if no search was performed.

Actual Behavior

The previously filtered results remain visible. The page does not reset to show all entries when the search query is cleared and submitted.

Environment

Additional Notes

This appears to be a front-end filtering issue — the search state is not being reset when an empty query is submitted.

Change History (2)

#1 @dd32
7 weeks ago

  • Component changed from General to Showcase
  • Milestone Improved Search deleted

#2 @dd32
7 weeks ago

  • Resolution set to worksforme
  • Status changed from new to closed

Unable to duplicate.

  1. The form has required set, so can't submit the form without a search value.
  2. Removing the required attribute and submitting the form with an empty field results in a search result of empty value, returning all items.
Note: See TracTickets for help on using tickets.