fix: la selezione degli elementi dei menu a tendina ticke e a mio carico ora è piu rapida (non serve cliccare su ok)
This commit is contained in:
@@ -608,10 +608,17 @@ const Filters = {
|
||||
});
|
||||
}
|
||||
|
||||
// Close all popovers on backdrop click
|
||||
// Close all popovers on backdrop click and confirm selection
|
||||
document.addEventListener('click', () => {
|
||||
document.querySelectorAll('.multiselect-popover').forEach(p => {
|
||||
if (p.style.display === 'block') {
|
||||
const okBtn = p.querySelector('.ms-ok, #customer-user-multiselect-ok');
|
||||
if (okBtn) {
|
||||
okBtn.click();
|
||||
} else {
|
||||
p.style.display = 'none';
|
||||
}
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user