Inconsistent search form behaviour
-
There is a big difference to how the search form behaves on the Events page compared to any other page where a calendar/list is being displayed using a shortcode that contains has_search and show_search.
- If you show the main search bar but turn off its text search because you have a text search configured to show in advanced search fields, the search bar appears correctly in the Events page but not in any other page. To get it to appear, you have to display the main search bar’s search field. Then you have text search twice.
- Turn off the main search bar and enable advanced search fields. On the Events page, the fields correctly appear inline but nothing appears on any other page.
- If you show the main search bar and set advanced fields to show inline, the search form is correctly displayed on the Events page but on any other page, the advanced fields do not show when you click the filter button.
- Enable advanced search fields and choose a couple to show. Then disable advanced search fields. On the Events page the advanced search fields button is correctly hidden in the main search bar but it is displayed on any other page.
This issue affects any search form. Display only the main search bar and its text search field. Enter a text search. It is now impossible to undo that search without having to refresh the browser. You cannot enter a blank search as the search button is disabled and there is no clear button. The only way to otherwise get it working, is to enable advanced search fields and show its text search, then you can enter an empty text search or clear the current text search.
The topic ‘Inconsistent search form behaviour’ is closed to new replies.