vanilla_respondage/options
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Tammo ter Hark 8a6cf1f919 fix(options): swatch-click outline moves even if a change handler throws
Row 122 follow-up: the outline followed dropdown changes (delegated document
handler, native events bubble) but not swatch clicks — the click handler did
sel.val(mode).trigger('change'); refreshAll();, and when the synthetic change
chain throws on the real page, jQuery aborts the rest of the click handler, so
refreshAll() never ran. Now the click handler sets the value and refreshes
FIRST, then fires trigger('change') inside try/catch. OPTIONS_JS_TOKEN ->
20261126.5. jsdom regression test: a throwing change handler on the select + chip
click still moves the outline (plus the existing dropdown/other assertions).
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:46:19 +01:00
..
options.js fix(options): swatch-click outline moves even if a change handler throws 2026-11-26 14:46:19 +01:00
options.twig fix(options): swatch-click outline moves even if a change handler throws 2026-11-26 14:46:19 +01:00