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(checkbox): v-model and checked #287

Merged
merged 4 commits into from
Aug 20, 2023
Merged

fix(checkbox): v-model and checked #287

merged 4 commits into from
Aug 20, 2023

Conversation

productdevbook
Copy link
Member

Description

Linked Issues

Additional context

@github-actions
Copy link
Contributor

github-actions bot commented Aug 19, 2023

Thank you for following the naming conventions! 🙏

@github-actions
Copy link
Contributor

github-actions bot commented Aug 19, 2023

Coverage Report

Status Category Percentage Covered / Total
🔵 Lines 82.77% 2643 / 3193
🔵 Statements 82.77% 2643 / 3193
🔵 Functions 68.51% 74 / 108
🔵 Branches 80% 168 / 210
File Coverage
File Stmts % Branch % Funcs % Lines Uncovered Lines
Changed Files
packages/components/checkbox/src/bubbleInput.ts 57.6% 100% 0% 57.6% 44-82
packages/components/checkbox/src/checkbox.ts 85.71% 75% 71.42% 85.71% 109, 130-133, 156-158, 164-170, 177-191
packages/components/checkbox/src/checkboxIndicator.ts 100% 75% 100% 100%
Generated in workflow #613

@@ -106,13 +103,18 @@ const Checkbox = defineComponent({
const hasConsumerStoppedPropagationRef = ref(false)

const modelValue = useModel(props, 'modelValue')
const proxyChecked = computed({
get: () => modelValue.value !== undefined ? modelValue.value : checkedProp.value !== undefined ? checkedProp.value : undefined,
set: () => {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This required?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you can solve it another way, you can pass the tests without changing them.

@productdevbook productdevbook merged commit 195c432 into main Aug 20, 2023
6 checks passed
@productdevbook productdevbook deleted the re-event branch August 20, 2023 03:17
@github-actions github-actions bot mentioned this pull request Aug 20, 2023
@github-actions github-actions bot mentioned this pull request Sep 11, 2023
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.

2 participants