-
Notifications
You must be signed in to change notification settings - Fork 649
Clear search input on index route #1875
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
(rust_highfive has picked a reviewer for you, use r? to override) |
Hm, I'm not sure this is what we want. The behavior you described is working as you intend, but it's leading to some unexpected results. When trying this out locally with
Another unexpected scenario:
Is it possible to set the search query to what's in the current URL's What do you think? |
I can do that if it the right product choice, could also decide to close this pr and the underlying issue if it is working as intended currently. |
I think we should make a change to the current behavior, if you're up for continuing to work on this. Thanks! |
41d162b
to
145bafb
Compare
@carols10cents ok great! rebased, now explicitly setting the Let me know if there are other things you'd like to see here 👍 |
Awesome!!! This looks great, thank you so much! I tested this in Firefox, Chrome, and Safari and it's working as I would expect. Firefox Nightly sometimes is only changing the URL and not the page when I navigate back, but I expect it'll work tomorrow 😆 @bors r+ |
📌 Commit 145bafb has been approved by |
Clear search input on index route Not sure what the correct product choice is here, but this clears the search input when navigating back to index route if that is in fact the behavior that is preferred. Fixes #1230 (for some context both npm and rubygems.org do NOT clear the index if you search and then navigate back via browser, but both clear if you navigate forward to the index route via top left icon clicks)
☀️ Test successful - checks-travis |
Not sure what the correct product choice is here, but this clears the search input when navigating back to index route if that is in fact the behavior that is preferred.
Fixes #1230
(for some context both npm and rubygems.org do NOT clear the index if you search and then navigate back via browser, but both clear if you navigate forward to the index route via top left icon clicks)