Skip to content

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

Merged
productdevbook merged 4 commits into
mainfrom
re-event
Aug 20, 2023
Merged

fix(checkbox): v-model and checked #287
productdevbook merged 4 commits into
mainfrom
re-event

Conversation

@productdevbook
Copy link
Copy Markdown
Contributor

Description

Linked Issues

Additional context

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Aug 19, 2023

Thank you for following the naming conventions! 🙏

@github-actions
Copy link
Copy Markdown
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

const modelValue = useModel(props, 'modelValue')
const proxyChecked = computed({
get: () => modelValue.value !== undefined ? modelValue.value : checkedProp.value !== undefined ? checkedProp.value : undefined,
set: () => {
Copy link
Copy Markdown
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
Copy Markdown
Contributor 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
@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