mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-28 11:39:21 +03:00
Solve menu arrow navigation
https://github.com/the-djmaze/snappymail/issues/22
This commit is contained in:
parent
250caab957
commit
f25d210f3e
8 changed files with 28 additions and 37 deletions
7
dev/bootstrap.js
vendored
7
dev/bootstrap.js
vendored
|
|
@ -45,12 +45,9 @@ export default (App) => {
|
|||
rl.Enums = Enums;
|
||||
|
||||
rl.Dropdowns = [];
|
||||
rl.Dropdowns.registrate = function(element) {
|
||||
this.push(element);
|
||||
element.addEventListener('click', () => rl.Dropdowns.detectVisibility());
|
||||
};
|
||||
rl.Dropdowns.register = function(element) { this.push(element); };
|
||||
rl.Dropdowns.detectVisibility = (() =>
|
||||
dropdownVisibility(!!rl.Dropdowns.find(item => item.classList.contains('open')))
|
||||
dropdownVisibility(!!rl.Dropdowns.find(item => item.classList.contains('show')))
|
||||
).debounce(50);
|
||||
|
||||
rl.route = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue