From 42949dfab193b261256130b3c868301a3f67f81a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Giller=20BIT?= Date: Tue, 12 Dec 2017 08:36:30 +0100 Subject: [PATCH] fix: remove `tabindex="-1"` on primary navigation elements #Closes #552 --- src/assets/js/rich-menu.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/assets/js/rich-menu.js b/src/assets/js/rich-menu.js index c9889a30..4d18c63e 100755 --- a/src/assets/js/rich-menu.js +++ b/src/assets/js/rich-menu.js @@ -29,6 +29,11 @@ }); }); + // "tabindex = -1" is added by bootstrap-accessibility-plugin to dropdown's elements. + // The yamm menu uses the dropdown class, but is not a conventional dropdown, hence, the tabindex must not + // be present. + $dropdown.find('li a').removeAttr('tabindex'); + $dropdownToggle.on('click', function() { $(this).parents($dropdown).trigger('get.hidden'); });