mirror of
https://github.com/zulip/zulip.git
synced 2025-10-22 20:42:14 +00:00
social_auth: Fix keyboard navigation on accounts in oauth.
This commit makes the accounts in oauth page navigable on `Tab`. Fixes:zulip#34724. Co-authored-by: Parasaran <v.parasaran@gmail.com>
This commit is contained in:
committed by
Tim Abbott
parent
27bfca61c1
commit
fd355e2028
@@ -13,7 +13,7 @@
|
||||
</div>
|
||||
|
||||
<div class="white-box">
|
||||
<form method="post" class="select-email-form" action="/complete/{{ backend }}/">
|
||||
<form method="post" class="select-email-form" action="/complete/{{ backend }}/" tabindex="0">
|
||||
<div class="choose-email-box">
|
||||
<input type="hidden" name="email" value="{{ primary_email }}" />
|
||||
{% if avatar_urls[primary_email] %}
|
||||
@@ -37,7 +37,7 @@
|
||||
</div>
|
||||
</form>
|
||||
{% for email in verified_non_primary_emails %}
|
||||
<form method="post" class="select-email-form" action="/complete/{{ backend }}/">
|
||||
<form method="post" class="select-email-form" action="/complete/{{ backend }}/" tabindex="0">
|
||||
<div class="choose-email-box">
|
||||
<input type="hidden" name="email" value="{{ email }}" />
|
||||
{% if avatar_urls[email] %}
|
||||
|
@@ -334,6 +334,13 @@ $(() => {
|
||||
$(e.target).hide();
|
||||
});
|
||||
|
||||
$("form.select-email-form").on("keydown", function (e) {
|
||||
if (e.key === "Enter") {
|
||||
e.preventDefault();
|
||||
$(this).trigger("submit");
|
||||
}
|
||||
});
|
||||
|
||||
$<HTMLSelectElement>("#how-realm-creator-found-zulip select").on("change", function () {
|
||||
const elements = new Map([
|
||||
["other", "how-realm-creator-found-zulip-other"],
|
||||
|
Reference in New Issue
Block a user