N°3207 - Global search: Fix "Tab" navigation no longer passing over history items

This commit is contained in:
Molkobain
2021-01-19 17:10:52 +01:00
parent aa2651ca71
commit cb6a8fccb9
2 changed files with 5 additions and 1 deletions

View File

@@ -31,6 +31,7 @@ $(function()
css_classes:
{
opened: 'ibo-is-opened',
hidden: 'ibo-is-hidden',
},
js_selectors:
{
@@ -143,11 +144,14 @@ $(function()
},
_openDrawer: function()
{
this.element.find(this.js_selectors.compartment_element).removeClass(this.css_classes.hidden);
this.element.addClass(this.css_classes.opened);
},
_closeDrawer: function()
{
this.element.removeClass(this.css_classes.opened);
//Note: Elements are hidden to avoid having the keyboard navigation "TAB" passing throught them when they are not displayed
this.element.find(this.js_selectors.compartment_element).addClass(this.css_classes.hidden);
},
_setFocusOnInput: function()
{

View File

@@ -165,7 +165,7 @@ $(function()
{
this.element.removeClass(this.css_classes.opened);
//Note: Elements are hidden to avoid having the keyboard navigation "TAB" passing throught them when they are not displayed
this.element.find(this.js_selectors.compartment_element).addClass(this.css_classes.hidden)
this.element.find(this.js_selectors.compartment_element).addClass(this.css_classes.hidden);
},
_setFocusOnInput: function()
{