Opened 2 years ago
Closed 2 years ago
#7013 closed defect (bug) (fixed)
Theme directory search handling breaks global search
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | Priority: | normal | |
Component: | Theme Directory | Keywords: | |
Cc: |
Description
The global search bar is broken on Theme Directory, nothing happens when you try to search.
To reproduce:
- Visit https://wordpress.org/themes/ or a single theme like https://wordpress.org/themes/twentytwentythree/
- Click the search icon in the global header (not the theme search), the search opens
- Type any search terms
- Hit enter or click the search icon button
- Nothing happens
It should direct you to the global search page, wordpress.org/search, with your results. Instead, there's a JS error that TypeError: a.closest(...) is null
I think the theme's JS handling is accidentally grabbing the global search, but the different markup causes the JS error that prevents the form from submitting.
Props to @nielslange for the initial report.
Change History (3)
Note: See
TracTickets for help on using
tickets.
I know the cause of this. Fix incoming.