From c3a535c987b680f1c715c42a41f061a4f8c9df86 Mon Sep 17 00:00:00 2001 From: Tyler Date: Sun, 17 May 2026 00:33:23 -0700 Subject: Fix quotetable row click: use data-sym + event delegation Replaced inline onclick with escaped string literals with the same data-sym / closest(tr[data-sym]) event delegation pattern used by the working sidebar watchlist. Avoids JS string quoting issues in HTML attribute context. Co-Authored-By: Claude Sonnet 4.6 --- components/quotetable.py | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/components/quotetable.py b/components/quotetable.py index e85c335..e975a67 100644 --- a/components/quotetable.py +++ b/components/quotetable.py @@ -64,7 +64,7 @@ def render_quotetable(watchlist: list[str]) -> None: vol_str = "—" rows_html += ( - "" + "" "" + sym_e + "" "" + sector_e + "" "" + px_str + "" @@ -76,7 +76,7 @@ def render_quotetable(watchlist: list[str]) -> None: except Exception: sym_e = escape_html(sym) rows_html += ( - "" + "" "" + sym_e + "" "—" "—" @@ -148,7 +148,10 @@ def render_quotetable(watchlist: list[str]) -> None: "" "" "" ) -- cgit v1.3-2-g0d8e