leave edit event
This commit is contained in:
@ -20,18 +20,20 @@ if (dropdownGlobal == null) {
|
||||
configurable: false,
|
||||
enumerable: false,
|
||||
value: function () {
|
||||
const panel = document.querySelector('.ui-drop-box.active');
|
||||
if (panel == null) {
|
||||
return;
|
||||
}
|
||||
panel.classList.remove('active');
|
||||
const dropId = panel.parentElement.dataset.dropId;
|
||||
if (dropId == null) {
|
||||
return;
|
||||
}
|
||||
const dropdown = this[dropId];
|
||||
if (dropdown?.multiselect && typeof dropdown.oncollapsed === 'function') {
|
||||
dropdown.oncollapsed();
|
||||
const panels = document.querySelectorAll('.ui-drop-box.active');
|
||||
for (let panel of [...panels]) {
|
||||
if (panel == null) {
|
||||
continue;
|
||||
}
|
||||
panel.classList.remove('active');
|
||||
const dropId = panel.parentElement.dataset.dropId;
|
||||
if (dropId == null) {
|
||||
continue;
|
||||
}
|
||||
const dropdown = this[dropId];
|
||||
if (dropdown?.multiselect && typeof dropdown.oncollapsed === 'function') {
|
||||
dropdown.oncollapsed();
|
||||
}
|
||||
}
|
||||
}
|
||||
})
|
||||
|
Reference in New Issue
Block a user