Skip to content

Revert "Merge #1194" #1215

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

Merged
merged 1 commit into from
Jan 4, 2018
Merged

Conversation

Turbo87
Copy link
Member

@Turbo87 Turbo87 commented Dec 29, 2017

While I still like the feature it self, the implementation currently has some issues (see #1209) that I wasn't aware of initially and are not quite as easy to fix. Since I'll be on vacation for the next weeks I won't have time to work on a proper solution for now, so IMHO the best solution is to revert the problematic behavior until this can be fixed correctly.

Resolves #1209

/cc @durka @Boscop

This reverts commit 37682dc, reversing
changes made to ae43922.
@Turbo87 Turbo87 added A-frontend 🐹 C-bug 🐞 Category: unintended, undesired behavior labels Dec 29, 2017
@carols10cents
Copy link
Member

😿 it happens.

bors: r+

bors-voyager bot added a commit that referenced this pull request Jan 4, 2018
1211: Remplace 32x32 PNG with SVG for GitHub mark r=carols10cents

The PNG looks blurry on a high-resolution display.

This SVG is extracted with Inkscape from `GitHub-Mark.ai` from https://github.com/logos.

1215: Revert "Merge #1194" r=carols10cents

While I still like the feature it self, the implementation currently has some issues (see #1209) that I wasn't aware of initially and are not quite as easy to fix. Since I'll be on vacation for the next weeks I won't have time to work on a proper solution for now, so IMHO the best solution is to revert the problematic behavior until this can be fixed correctly.

Resolves #1209

/cc @durka @Boscop
@bors-voyager
Copy link
Contributor

bors-voyager bot commented Jan 4, 2018

Build succeeded

@bors-voyager bors-voyager bot merged commit bc45419 into rust-lang:master Jan 4, 2018
@Boscop
Copy link

Boscop commented Jan 15, 2018

Thanks :)
Btw, isn't there a way to do an ajax request to refresh the results without changing the history with pushState()?

@Turbo87
Copy link
Member Author

Turbo87 commented Jan 16, 2018

There certainly is, but having your searches in the history is actually a good thing, just not for every key stroke...

@Boscop
Copy link

Boscop commented Jan 17, 2018

Yes, I mean only do pushState on Enter.
But then it won't pushState if someone clicks on a result from the instant suggestions.
So the best way would be to pushState before any further navigation, maybe with a pre-history-change hook, by listening to that event? Then doing pushState before letting the navigation happen..

@Turbo87 Turbo87 deleted the revert-live-search branch January 20, 2018 12:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-frontend 🐹 C-bug 🐞 Category: unintended, undesired behavior
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Crates.io creates a new browser history entry for every letter typed in the search field
3 participants