|
|
@@ -979,6 +979,22 @@
|
|
|
}
|
|
|
});
|
|
|
|
|
|
+ // Close dropdowns when the cursor leaves the trigger+panel root. The
|
|
|
+ // panel sits inside the root (`<div class="relative">`), so a single
|
|
|
+ // mouseleave on the root fires only when the cursor exits both the
|
|
|
+ // button and the dropdown.
|
|
|
+ [
|
|
|
+ ['[data-owner-filter-root]', '[data-owner-filter-dropdown]'],
|
|
|
+ ['[data-status-filter-root]', '[data-status-filter-dropdown]'],
|
|
|
+ ['[data-columns-root]', '[data-columns-dropdown]'],
|
|
|
+ ].forEach(function (pair) {
|
|
|
+ const r = qs(pair[0]);
|
|
|
+ if (!r) { return; }
|
|
|
+ r.addEventListener('mouseleave', function () {
|
|
|
+ setHidden(qs(pair[1]), true);
|
|
|
+ });
|
|
|
+ });
|
|
|
+
|
|
|
// --- Reset filters ---------------------------------------------------
|
|
|
|
|
|
function filtersActive() {
|