From eca463add1f372e9c9ce3272647c53b3604f08d9 Mon Sep 17 00:00:00 2001 From: Graham McIntire Date: Sun, 3 May 2026 11:19:14 -0500 Subject: [PATCH] fix(rover-planning): keep only_known_good checked across phx-change events The hidden 'false' shadow input was rendered after the checkbox, so when both were submitted the 'false' value overwrote the checkbox 'true' in the resulting params map. Move the hidden input before the checkbox so the checked value wins (matching the core_components checkbox pattern). --- .../live/rover_planning_live/form.ex | 2 +- .../live/rover_planning_live_test.exs | 25 +++++++++++++++++++ 2 files changed, 26 insertions(+), 1 deletion(-) diff --git a/lib/microwaveprop_web/live/rover_planning_live/form.ex b/lib/microwaveprop_web/live/rover_planning_live/form.ex index 48f5e87c..899c51d6 100644 --- a/lib/microwaveprop_web/live/rover_planning_live/form.ex +++ b/lib/microwaveprop_web/live/rover_planning_live/form.ex @@ -217,6 +217,7 @@ defmodule MicrowavepropWeb.RoverPlanningLive.Form do