Fix pick list and product select handling

This commit is contained in:
beatz174-bit committed 2025-11-24 20:27:32 +10:00
1 parent 96cb8b8b88
commit 7e69e4467f
3 files changed
+46 -42

No files matched your search

+3 -3
View File
@@ -7,7 +7,6 @@ import {
DialogContent,
DialogTitle,
IconButton,
MenuItem,
Stack,
TextField,
Typography,
@@ -106,15 +105,16 @@ export const ProductRow = ({ product, categories, onSave, onDelete }: ProductRow
/>
<TextField
select
SelectProps={{ native: true }}
label="Category"
value={formState.category}
onChange={handleChange('category')}
size="small"
>
{categories.map((cat) => (
<MenuItem key={cat} value={cat}>
<option key={cat} value={cat}>
{cat}
</MenuItem>
</option>
))}
</TextField>
{formState.barcode ? (