Skip to content

Commit

Permalink
Fix issue with props on cartlinequantityadjustbutton (#196)
Browse files Browse the repository at this point in the history
  • Loading branch information
frehner authored Feb 23, 2023
1 parent 37d036f commit 67da795
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/early-dragons-listen.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@shopify/hydrogen-react': patch
---

Fix issue with props on the `<CartLineQuantityAdjustButton />` being possibly overwritten.
2 changes: 1 addition & 1 deletion packages/react/src/CartLineQuantityAdjustButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,14 +60,14 @@ export function CartLineQuantityAdjustButton<

return (
<BaseButton
{...passthroughProps}
onClick={onClick}
defaultOnClick={handleAdjust}
disabled={
typeof passthroughProps.disabled !== 'undefined'
? passthroughProps.disabled
: status !== 'idle'
}
{...passthroughProps}
>
{children}
</BaseButton>
Expand Down

0 comments on commit 67da795

Please sign in to comment.