Add an onCheckoutButtonClick prop for the checkout button in the MiniCart component
Closed this issue ยท 4 comments
mikemurray commented
Type: minor
Describe the bug
There is no "onClick" prop for the checkout button in the mini cart. There is no way to attach an event to that button without providing your own component.
aldeed commented
In the starter kit, I believe we have to override the component anyway because we have to have a button wrapped in a <Link>
. But nevertheless, this would be a good thing to add at some point.
mikemurray commented
I was planning on using the Router.pushRoute
, but I see what you mean. Going to add it anyway since its quick.
mikemurray commented
...since the mini-cart won't show up anyway in SSR mode since it requires JS to open.
rc-publisher commented
๐ This issue has been resolved in version 0.22.0 ๐
The release is available on:
Your semantic-release bot ๐ฆ๐