mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-29 12:09:20 +03:00
Cleanup Dropdowns handling
This commit is contained in:
parent
ffcd9990eb
commit
04f4538700
5 changed files with 14 additions and 14 deletions
7
dev/External/User/ko.js
vendored
7
dev/External/User/ko.js
vendored
|
|
@ -2,8 +2,9 @@ import 'External/ko';
|
|||
import ko from 'ko';
|
||||
import { HtmlEditor } from 'Common/Html';
|
||||
import { timeToNode } from 'Common/Translator';
|
||||
import { elementById, addEventsListeners } from 'Common/Globals';
|
||||
import { elementById, addEventsListeners, dropdowns } from 'Common/Globals';
|
||||
import { isArray } from 'Common/Utils';
|
||||
import { dropdownsDetectVisibility } from 'Common/UtilsUser';
|
||||
import { EmailAddressesComponent } from 'Component/EmailAddresses';
|
||||
import { ThemeStore } from 'Stores/Theme';
|
||||
import { moveMessagesToFolder } from 'Common/Folders';
|
||||
|
|
@ -231,7 +232,7 @@ Object.assign(ko.bindingHandlers, {
|
|||
|
||||
registerBootstrapDropdown: {
|
||||
init: element => {
|
||||
rl.Dropdowns.register(element);
|
||||
dropdowns.push(element);
|
||||
element.ddBtn = new BSN.Dropdown(element.querySelector('.dropdown-toggle'));
|
||||
}
|
||||
},
|
||||
|
|
@ -243,7 +244,7 @@ Object.assign(ko.bindingHandlers, {
|
|||
el.open || el.toggle();
|
||||
// el.focus();
|
||||
|
||||
rl.Dropdowns.detectVisibility();
|
||||
dropdownsDetectVisibility();
|
||||
fValueAccessor()(false);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue