mirror of https://github.com/zulip/zulip.git
navbar: Remove stale focus-dropdown code.
We don't need this since we migrated the dropdown to tippy which handles the navigation via popover_items_handle_keyboard.
This commit is contained in:
parent
75c874fef6
commit
07dcf66c72
|
@ -111,11 +111,6 @@ export function initialize() {
|
|||
onMount(instance) {
|
||||
const $popper = $(instance.popper);
|
||||
popover_menus.popover_instances.gear_menu = instance;
|
||||
$(".focus-dropdown").on("focus", (e) => {
|
||||
e.preventDefault();
|
||||
$("#gear-menu-dropdown").find(".org-version a").trigger("focus");
|
||||
});
|
||||
|
||||
$popper.on("click", ".webathena_login", (e) => {
|
||||
$("#zephyr-mirror-error").removeClass("show");
|
||||
const principal = ["zephyr", "zephyr"];
|
||||
|
|
|
@ -89,12 +89,6 @@ export function initialize() {
|
|||
popovers.hide_all();
|
||||
e.preventDefault();
|
||||
});
|
||||
|
||||
$(".focus-dropdown").on("focus", (e) => {
|
||||
e.preventDefault();
|
||||
$popper.find("li:visible a").eq(0).trigger("focus");
|
||||
});
|
||||
|
||||
instance.popperInstance.update();
|
||||
},
|
||||
onShow(instance) {
|
||||
|
|
|
@ -55,19 +55,16 @@
|
|||
<a class="header-button tippy-zulip-delayed-tooltip" tabindex="0" role="button" data-tooltip-template-id="help-menu-tooltip-template">
|
||||
<i class="zulip-icon zulip-icon-help" aria-hidden="true"></i>
|
||||
</a>
|
||||
<span tabindex="0" class="focus-dropdown"></span>
|
||||
</div>
|
||||
<div id="gear-menu" class="{{#if embedded}}hide-navbar-buttons-visibility{{/if}}">
|
||||
<a id="settings-dropdown" tabindex="0" role="button" class="header-button tippy-zulip-delayed-tooltip" data-tooltip-template-id="gear-menu-tooltip-template">
|
||||
<i class="zulip-icon zulip-icon-gear" aria-hidden="true"></i>
|
||||
</a>
|
||||
<span tabindex="0" class="focus-dropdown"></span>
|
||||
</div>
|
||||
<div id="personal-menu" class="hidden-for-spectators">
|
||||
<a class="header-button tippy-zulip-delayed-tooltip" tabindex="0" role="button" data-tooltip-template-id="personal-menu-tooltip-template">
|
||||
<img class="header-button-avatar" src="{{user_avatar}}"/>
|
||||
</a>
|
||||
<span tabindex="0" class="focus-dropdown"></span>
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
||||
|
|
Loading…
Reference in New Issue