Skip to content

Commit

Permalink
settings_panel_menu: Fix the switching behavior for hidden section pa…
Browse files Browse the repository at this point in the history
…nels.

For organization settings page there are few sections' panels which are not
visible (unless you click on 'show more') but when we use up-down arrows to
navigate between sections, sections of hidden panels also get visible which
leads to confusion.

Fixes: #13008.
  • Loading branch information
pragatiagrawal31 authored and timabbott committed Aug 15, 2019
1 parent f7e88fb commit 6b5e98d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions static/js/settings_panel_menu.js
Expand Up @@ -43,12 +43,12 @@ exports.make_menu = function (opts) {
};

self.prev = function () {
curr_li.prev().focus().click();
curr_li.prevAll(":visible:first").focus().click();
return true;
};

self.next = function () {
curr_li.next().focus().click();
curr_li.nextAll(":visible:first").focus().click();
return true;
};

Expand Down

0 comments on commit 6b5e98d

Please sign in to comment.