N°3208 - Quick create: Fix several items:

- Tab navigation no longer passing over history items
- Autocomplete results selection can now be done via up/down arrows
This commit is contained in:
Molkobain
2021-01-19 16:00:30 +01:00
parent cb28ca7941
commit aa2651ca71
2 changed files with 34 additions and 10 deletions

View File

@@ -31,6 +31,7 @@ $(function()
css_classes:
{
opened: 'ibo-is-opened',
hidden: 'ibo-is-hidden',
},
js_selectors:
{
@@ -157,11 +158,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()
{