Skip to content

Conversation

@rdjanuar
Copy link
Contributor

@rdjanuar rdjanuar commented Jul 11, 2025

This change addresses a problem where checkboxes within the tree component are not accurately reflecting their checked state when using v-model.

Problem
When v-model is applied to the tree checkboxes and an attempt is made to toggle them, v-model updates incorrect data. For example, if a parent tree node is already checked and then an attempt is made to uncheck it, v-model appends the data instead of removing it.

Current Behavior
The checkboxes function correctly and display their state accurately only when v-model is not used.

@rdjanuar rdjanuar marked this pull request as draft July 11, 2025 10:28
@rdjanuar rdjanuar marked this pull request as ready for review July 11, 2025 10:37
@zernonia
Copy link
Member

@rdjanuar can you share reproduction of the issue mentioned above?

@rdjanuar
Copy link
Contributor Author

https://stackblitz.com/edit/nuxt-starter-c3dbfhmc?file=nuxt.config.ts,app.vue

@zernonia

@pkg-pr-new
Copy link

pkg-pr-new bot commented Jul 21, 2025

Open in StackBlitz

npm i https://pkg.pr.new/reka-ui@2040

commit: d3432e1

@zernonia
Copy link
Member

Thanks for the PR @rdjanuar ! 🙏🏼

@zernonia zernonia merged commit 7842206 into unovue:v2 Jul 21, 2025
5 checks passed
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