dropdown menu and comment side panel
This commit is contained in:
@@ -74,4 +74,13 @@
|
||||
document.addEventListener('keydown', (e) => {
|
||||
if (e.key === 'Escape') closeAllDrawers();
|
||||
});
|
||||
|
||||
// Close action dropdowns when clicking outside
|
||||
document.addEventListener('click', (e) => {
|
||||
document.querySelectorAll('.document-actions-dropdown[open]').forEach((details) => {
|
||||
if (!details.contains(e.target)) {
|
||||
details.removeAttribute('open');
|
||||
}
|
||||
});
|
||||
});
|
||||
})();
|
||||
|
||||
Reference in New Issue
Block a user