If a user searches for something using Kagi and then changes the search category to images, videos, news, or podcasts, the search term will be preserved in the search bar. However, there is a bug where if the user clears the search query from the search bar and changes the search category, it will still display the previous search term in the search bar. There is also another bug where if the user deletes part of the search query and waits for the search suggestion dropdown menu to appear, then deletes the entire search bar content and changes the search category, it will also keep that partial search term.
Steps to reproduce:
- Kagi search "dick cheney vice president".
- Click-and-drag "cheney vice president" and delete it. (Or you can ctrl+backspace 3 times to delete three words.)
- Wait for the search suggestion dropdown menu to appear.
- Now delete the entire search bar content. (Delete "dick".) The search bar should be empty now.
- Change search category to images, videos, news, or podcasts.
- The search bar will contain "dick".
I expect the search bar to be empty when deleting the entire query and switching search category.