mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-09 13:01:00 +00:00
The confirm-on-dismiss guard walked only `input` / `textarea`, so a user who changed just the mood `role=radio` selector or was mid-pick in a Radix Select (measurement type / medication) lost the change on a backdrop dismiss with no confirm. Treat any `[role=radio][aria-checked=true]` (mood starts unselected, so a checked radio is a deliberate choice) and any open Select trigger (`[role=combobox][data-state=open]`) as unsaved input. Keep the date/time-picker exclusion, and do not flag a closed Select on its default value so a pristine sheet still dismisses without the prompt.