Skip to content

Open source personal finance application

fix(ui): keep context menu clickable inside modal overlays

Ilya Komichevf9c2dca02150
diff --git a/app/app/assets/css/main.css b/app/app/assets/css/main.css
index fe4b1083..85910341 100644
--- a/app/app/assets/css/main.css
+++ b/app/app/assets/css/main.css
@@ -30,4 +30,12 @@
[data-reka-popper-content-wrapper] {
z-index: 60 !important;
}
+
+ /* On open, reka-ui locks the page via `pointer-events: none` on <body>, but the
+ menu content never gets `pointer-events: auto` back (the trnForm overlay breaks
+ the DismissableLayer stack), so clicks/taps pass through the menu to the element
+ underneath. Re-enable pointer events on the menu wrapper itself. */
+ [data-reka-popper-content-wrapper]:has([role='menu']) {
+ pointer-events: auto !important;
+ }
}