From 34fb2d3b8265c231f77da36a60ddbfc59862782d Mon Sep 17 00:00:00 2001 From: Tankut Date: Wed, 10 Jun 2026 11:19:24 +0300 Subject: [PATCH] enable live client-side updates for custom tooltips using HTML templates --- README.md | 16 ++++- .../advanced_select_controller.js | 65 ++++++++++++++++++- .../tooltips/_alternatives.html.erb | 8 ++- test/helpers/advanced_select/helper_test.rb | 4 +- .../advanced_select_interaction_test.rb | 30 +++++++++ 5 files changed, 118 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index c759b72..21d2a33 100644 --- a/README.md +++ b/README.md @@ -484,13 +484,19 @@ For richer layouts — a table, badges, compatibility columns, etc. — pass `to ) %> ``` +The partial is rendered on the server for the initial selection, and the controller keeps it in sync client-side as the selection changes — no Turbo Stream round-trip. To opt in, mark the row container and provide a one-row `