-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: Deselecting a single product from a group, deselects all variants(#2kbkwnr) #51
Conversation
src/views/OrderDetail.vue
Outdated
@@ -97,7 +97,7 @@ | |||
|
|||
<div /> | |||
|
|||
<ion-checkbox :checked="isParentProductChecked(id)" @ionChange="selectParentProduct(id, $event)" /> | |||
<ion-checkbox :checked="isParentProductChecked(id)" @click="handleChange(true)" @ionChange="selectParentProduct(id, $event)" /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Instead of having separate method, I think we could call selectParentProduct(id, $event)
on click
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If we call selectParentProduct on click it will not select/deselect all the variants as we won't be able to access the current value of checkbox
…into #2kbkwnr-updated
Closes #82