diff --git a/resources/views/components/forms/input-with-select.blade.php b/resources/views/components/forms/input-with-select.blade.php index d9f72143f..5a9e10d4b 100644 --- a/resources/views/components/forms/input-with-select.blade.php +++ b/resources/views/components/forms/input-with-select.blade.php @@ -3,6 +3,16 @@ $selectId = $htmlId !== 'null' ? $htmlId . '-select' : null; @endphp + +
+
+ {{-- Hidden input for wire:dirty tracking (binds to combinedValue which has the full value with unit) --}} + @if ($modelBinding !== 'null') + + @endif + {{-- Input --}} { parseCombinedValue(combined) { // Parse combinedValue (e.g., "512m") into structured format // Only matches if suffix is a valid unit to avoid footguns - if (!combined || combined === '0') { + if (!combined || combined === '0' || combined === 'null' || combined === null) { return { value: '', unit: config.defaultUnit }; }