quarkusio / search.quarkus.io

Search backend for Quarkus websites
Apache License 2.0
0 stars 6 forks source link

Clearing the serach input by clicking x does not keep the category filter #252

Closed marko-bekhta closed 3 months ago

marko-bekhta commented 3 months ago
  1. Pick a category e.g. Data
  2. Search for something, e.g. orm
  3. Click x in the search input.
    • text cleared
    • category filter stays unchanged
    • Search results resets to the initial page with group sections.

Peek 2024-04-24 22-19

We should either reset the category filter as well, or make sure that the guides are filtered by the category

yrodiere commented 3 months ago

If only there were JS frameworks designed to take care of that entire class of statefulness problem automatically... say vue.js... :]

ia3andy commented 3 months ago

If only there were JS frameworks designed to take care of that entire class of statefulness problem automatically... say vue.js... :]

The logic with VueJS was pretty similar, no? I wonder what would take care of this kind of issue in VueJS

Also, obviously, you can't compare a full blown SPA framework with native browser features (web-components). Have a look at mvnpm.org (made by @phillip-kruger), it all made with Lit web-components and the result is pretty nice.