Currently, if the search form has a hidden post_type field, Instant Results respects that field on a first try, but removes that filter from the query string as soon as a new term is entered.
Steps to Reproduce
Have a search form with a hidden field <input type="hidden" name="post_type" value="post">
Search for any term, and it will only fetch the posts from the post type
Once the Modal is opened, Retype the same term, and it will search the posts from all the post types.
Screenshots, screen recording, code snippet
No response
Environment information
No response
WordPress and ElasticPress information
No response
Code of Conduct
[X] I agree to follow this project's Code of Conduct
Describe the bug
Currently, if the search form has a hidden
post_type
field, Instant Results respects that field on a first try, but removes that filter from the query string as soon as a new term is entered.Steps to Reproduce
<input type="hidden" name="post_type" value="post">
post
typeScreenshots, screen recording, code snippet
No response
Environment information
No response
WordPress and ElasticPress information
No response
Code of Conduct