diff options
| author | Tyler <tyler@tylerhoang.xyz> | 2026-05-17 00:36:07 -0700 |
|---|---|---|
| committer | Tyler <tyler@tylerhoang.xyz> | 2026-05-17 00:36:07 -0700 |
| commit | 5d24e21aa4ec234d51258b0741543b38c233c542 (patch) | |
| tree | fab12399bb42289c49a7278719f59db6ad20860f | |
| parent | c3a535c987b680f1c715c42a41f061a4f8c9df86 (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>
| -rw-r--r-- | app.py | 12 |
1 files changed, 9 insertions, 3 deletions
@@ -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 ──────────────────────────────────────────────────── */ |
