Skip to content

Commit

Permalink
fix native selects in carts
Browse files Browse the repository at this point in the history
  • Loading branch information
David Tai committed Jul 21, 2020
1 parent 623cfba commit 314ffb5
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion dist/components/Cart.js
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ const Cart = ({ order, setCoupon, setItem, locked, cartIcon, cartTitle, showDesc
React.createElement(Grid, { item: true, xs: 4, sm: 2, className: classnames(classes.right, 'cart-item-quantity') },
React.createElement(MUIText, { select: true, disabled: item.locked || locked, options: quantityOpts, value: item.quantity, setValue: (quantity) => {
setItem(item.id, parseInt(quantity, 10));
} }))),
}, SelectProps: { native: !!nativeSelects } }))),
React.createElement("br", null)))));
}))),
!!(order.items && order.items.length && order.items.length > 0)
Expand Down
2 changes: 1 addition & 1 deletion dist/index.umd.js
Original file line number Diff line number Diff line change
Expand Up @@ -58536,7 +58536,7 @@
React__default.createElement(StyledGrid, { item: true, xs: 4, sm: 2, className: classnames(classes.right, 'cart-item-quantity') },
React__default.createElement(MUIText, { select: true, disabled: item.locked || locked, options: quantityOpts, value: item.quantity, setValue: (quantity) => {
setItem(item.id, parseInt(quantity, 10));
} }))),
}, SelectProps: { native: !!nativeSelects } }))),
React__default.createElement("br", null)))));
}))),
!!(order.items && order.items.length && order.items.length > 0)
Expand Down
2 changes: 0 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,6 @@
"midstream": "2.0.2",
"mobx": "5.15.4",
"mobx-react": "6.2.2",
"moment": "2.27.0",
"moment-timezone": "0.5.31",
"prop-types": "^15.7.2",
"raf": "3.4.1",
"react-is": "^16.13.1",
Expand Down
1 change: 1 addition & 0 deletions src/components/Cart.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,7 @@ const Cart = ({
setValue={ (quantity) => {
setItem(item.id, parseInt(quantity, 10))
}}
SelectProps={{ native: !!nativeSelects }}
/>
</Grid>
</Grid>
Expand Down
2 changes: 1 addition & 1 deletion stats.html

Large diffs are not rendered by default.

0 comments on commit 314ffb5

Please sign in to comment.