Skip to content
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

Merged
merged 9 commits into from
Nov 2, 2022

Conversation

disha1202
Copy link
Contributor

@disha1202 disha1202 commented Jul 18, 2022

Closes #82

@@ -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)" />
Copy link
Contributor

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

Copy link
Contributor Author

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

@adityasharma7 adityasharma7 merged commit 22b0dcb into hotwax:main Nov 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Deselecting a single product from a group, deselects all variants
2 participants