Fix pick list and product select handling
This commit is contained in:
1 parent
96cb8b8b88
commit
7e69e4467f
3 files changed
+46
-42
No files matched your search
@@ -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 ? (
|
||||
|
||||
Reference in new issue
Block a user