vanilla_respondage/options
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Tammo ter Hark 1c89032339 fix(options): active-swatch outline follows the choice immediately
The outline around the chosen swatch (.color-chip.active) only updated on page
load/save, not when the dropdown choice changed: the refresh was bound as a
direct change handler on the select, and on the real page an earlier direct
handler in the chain can throw, which aborts jQuery's dispatch so the refresh
never ran (native user events still bubble, synthetic triggers do not). Fixes:
the chip click handler now calls refreshAll() directly after triggering change,
and a delegated document-level change handler on select[name=navbarfontcolor]
acts as a backup that still fires for real user changes. OPTIONS_JS_TOKEN ->
20261126.4. jsdom test pins: outline moves on chip click and on dropdown
change, and no preset is outlined in mode 'other'. Suite 6/6, export 0.
Variants not rebuilt (deferred).

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-11-26 14:29:50 +01:00
..
options.js fix(options): active-swatch outline follows the choice immediately 2026-11-26 14:29:50 +01:00
options.twig fix(options): active-swatch outline follows the choice immediately 2026-11-26 14:29:50 +01:00