From 7631d961c57eb50c197ea9b03b28ac565d8e2a92 Mon Sep 17 00:00:00 2001 From: Eric Gullickson <16152721+ericgullickson@users.noreply.github.com> Date: Wed, 31 Dec 2025 16:14:05 -0600 Subject: [PATCH] fix: drop downs not populating on edit --- .../src/features/vehicles/components/VehicleForm.tsx | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/frontend/src/features/vehicles/components/VehicleForm.tsx b/frontend/src/features/vehicles/components/VehicleForm.tsx index 9be6441..d6963b6 100644 --- a/frontend/src/features/vehicles/components/VehicleForm.tsx +++ b/frontend/src/features/vehicles/components/VehicleForm.tsx @@ -114,6 +114,8 @@ export const VehicleForm: React.FC = ({ const watchedMake = watch('make'); const watchedModel = watch('model'); const watchedTrim = watch('trimLevel'); + const watchedEngine = watch('engine'); + const watchedTransmission = watch('transmission'); // Load years on component mount useEffect(() => { @@ -560,6 +562,10 @@ export const VehicleForm: React.FC = ({ { + setValue('transmission', e.target.value); + }} className="w-full px-3 py-2 border rounded-md min-h-[44px] bg-white text-gray-900 border-gray-300 focus:outline-none focus:ring-2 focus:ring-primary-500 dark:bg-scuro dark:text-avus dark:border-silverstone dark:focus:ring-abudhabi dark:focus:border-abudhabi" disabled={loadingDropdowns || !watchedTrim || transmissions.length === 0} style={{ fontSize: '16px' }}