inventory
This commit is contained in:
@@ -374,10 +374,10 @@ export function InventoryFormPage({ mode }: InventoryFormPageProps) {
|
||||
<span className="mb-2 block text-xs font-semibold uppercase tracking-[0.16em] text-muted">Qty</span>
|
||||
<input
|
||||
type="number"
|
||||
min={0.0001}
|
||||
step={0.0001}
|
||||
min={1}
|
||||
step={1}
|
||||
value={line.quantity}
|
||||
onChange={(event) => updateBomLine(index, { ...line, quantity: Number(event.target.value) })}
|
||||
onChange={(event) => updateBomLine(index, { ...line, quantity: Number.parseInt(event.target.value, 10) || 0 })}
|
||||
className="w-full rounded-2xl border border-line/70 bg-surface px-2 py-2 text-text outline-none transition focus:border-brand"
|
||||
/>
|
||||
</label>
|
||||
|
||||
Reference in New Issue
Block a user