aboutsummaryrefslogtreecommitdiff
path: root/app.py
diff options
context:
space:
mode:
authorTyler <tyler@tylerhoang.xyz>2026-05-17 00:36:07 -0700
committerTyler <tyler@tylerhoang.xyz>2026-05-17 00:36:07 -0700
commit5d24e21aa4ec234d51258b0741543b38c233c542 (patch)
treefab12399bb42289c49a7278719f59db6ad20860f /app.py
parentc3a535c987b680f1c715c42a41f061a4f8c9df86 (diff)
Fix click receivers: visibility:hidden instead of display:none
display:none removes elements from React's event processing, causing JS-dispatched input events to be silently dropped. Switching to visibility:hidden + height:0 keeps the inputs in the React tree so programmatic value changes trigger reruns correctly. Also covers the new qt_click_receiver for the quotetable. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'app.py')
-rw-r--r--app.py12
1 files changed, 9 insertions, 3 deletions
diff --git a/app.py b/app.py
index c9f36a7..e87482d 100644
--- a/app.py
+++ b/app.py
@@ -404,9 +404,15 @@ hr {
::-webkit-scrollbar-thumb { background: var(--ink-3); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--ink-4); }
-/* Hide the watchlist click receiver input */
-[data-testid="stSidebar"] [data-testid="stTextInput"]:has(input[aria-label="wl_click_receiver"]) {
- display: none !important;
+/* Hide click receiver inputs without removing them from React's event system */
+[data-testid="stSidebar"] [data-testid="stTextInput"]:has(input[aria-label="wl_click_receiver"]),
+[data-testid="stTextInput"]:has(input[aria-label="qt_click_receiver"]) {
+ visibility: hidden !important;
+ height: 0 !important;
+ min-height: 0 !important;
+ overflow: hidden !important;
+ margin: 0 !important;
+ padding: 0 !important;
}
/* ── Ticker Header Band ──────────────────────────────────────────────────── */