Skip to content

Fixes submit event of the search input - #79985

Merged
bors merged 1 commit into
rust-lang:masterfrom
GuillaumeGomez:fix-submit-event
Dec 13, 2020
Merged

Fixes submit event of the search input#79985
bors merged 1 commit into
rust-lang:masterfrom
GuillaumeGomez:fix-submit-event

Conversation

@GuillaumeGomez

@GuillaumeGomezGuillaumeGomez commented Dec 12, 2020

Copy link
Copy Markdown
Member

Fixes#79960

It's a very funny corner case:

In HTML, when a button follows an input (in a form), if the enter keep is pressed on the input, instead of sending the submit event to the input, it'll create a click event on the button following it, which in this case made the help popup show up whenever "enter" was pressed.

cc @camelid

r? @jyn514

@rust-highfiverust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Dec 12, 2020
@jyn514jyn514 added A-rustdoc-ui Area: Rustdoc UI (generated HTML) T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue. labels Dec 12, 2020
Comment threadsrc/librustdoc/html/layout.rs Outdated
Comment threadsrc/librustdoc/html/layout.rs Outdated
In HTML, when a button follows an input, if the enter keep is pressed on the input, instead of sending the submit event to the input, it'll create a click event on the button following it, which in this case made the help popup show up whenever "enter" was pressed.
@GuillaumeGomez

Copy link
Copy Markdown
MemberAuthor

Switched back to button!

@jyn514

Copy link
Copy Markdown
Member

r=me with CI passing

@jyn514

Copy link
Copy Markdown
Member

Oh wait, there are no tests for the frontend :(

@bors r+ rollup

@bors

bors commented Dec 12, 2020

Copy link
Copy Markdown
Collaborator

📌 Commit 98118bb has been approved by jyn514

@borsbors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Dec 12, 2020
@GuillaumeGomez

GuillaumeGomez commented Dec 12, 2020 via email

Copy link
Copy Markdown
MemberAuthor

@JohnTitorJohnTitor mentioned this pull request Dec 13, 2020
bors added a commit to rust-lang-ci/rust that referenced this pull request Dec 13, 2020
Rollup of 12 pull requests
Successful merges:
- rust-lang#79360 (std::iter: document iteration over `&T` and `&mut T`)
- rust-lang#79398 (Link loop/for keyword)
- rust-lang#79834 (Remove deprecated linked_list_extras methods.)
- rust-lang#79845 (Fix rustup support in default_build_triple for python3)
- rust-lang#79940 (fix more clippy::complexity findings)
- rust-lang#79942 (Add post-init hook for static memory for miri.)
- rust-lang#79954 (Fix building compiler docs with stage 0)
- rust-lang#79963 (Fix typo in `DebruijnIndex` documentation)
- rust-lang#79970 (Misc rustbuild improvements when the LLVM backend isn't used)
- rust-lang#79973 (rustdoc light theme: Fix CSS for selected buttons)
- rust-lang#79984 (Remove an unused dependency that made `rustdoc` crash)
- rust-lang#79985 (Fixes submit event of the search input)
Failed merges:
r? `@ghost`
`@rustbot` modify labels: rollup
@bors
bors merged commit 3213089 into rust-lang:masterDec 13, 2020
@rustbotrustbot added this to the 1.50.0 milestone Dec 13, 2020
@GuillaumeGomez
GuillaumeGomez deleted the fix-submit-event branch December 13, 2020 10:50
Dylan-DPC-zz pushed a commit to Dylan-DPC-zz/rust that referenced this pull request Mar 18, 2021
…ed, r=Nemo157
Only build help popup when it's really needed
When working on rust-lang#79985, I realized that the help popup was built even when it wasn't needed. This PR only makes the help popup to be built when required.
r? `@jyn514`
Dylan-DPC-zz pushed a commit to Dylan-DPC-zz/rust that referenced this pull request Mar 19, 2021
…ed, r=Nemo157
Only build help popup when it's really needed
When working on rust-lang#79985, I realized that the help popup was built even when it wasn't needed. This PR only makes the help popup to be built when required.
r? `@jyn514`
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-rustdoc-uiArea: Rustdoc UI (generated HTML)S-waiting-on-borsStatus: Waiting on bors to run and complete tests. Bors will change the label on completion.T-rustdocRelevant to the rustdoc team, which will review and decide on the PR/issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

rustdoc help popup appears in every new tab when no web local storage

6 participants

@GuillaumeGomez@jyn514@bors@camelid@rust-highfive@rustbot