This website requires JavaScript.
Explore
Help
Register
Sign In
xkyy
/
xk-admin
Watch
1
Star
0
Fork
0
You've already forked xk-admin
Code
Issues
Pull Requests
Actions
3
Packages
Projects
Releases
Wiki
Activity
Files
7ec4df49953e9d678b462e776eb3fa8c7e1db279
xk-admin
/
.changeset
/
tree-default-value.md
6 lines
99 B
Markdown
Raw
Normal View
History
Unescape
Escape
fix: preserve tree default value when treeData starts empty (#7908) When treeData is initially an empty array (e.g. before async data arrives), updateTreeValue() would clear the modelValue because no matching items could be found in the empty flattened data. This caused default values to be lost. Only call updateTreeValue() when flattenData has items, so that modelValue is preserved until the actual tree data arrives. Fixes #6522
2026-05-16 10:41:42 +08:00
---
style: apply vsh lint formatting (#7923)
2026-05-19 13:40:13 +08:00
'
@vben
-core/shadcn-ui': patch
fix: preserve tree default value when treeData starts empty (#7908) When treeData is initially an empty array (e.g. before async data arrives), updateTreeValue() would clear the modelValue because no matching items could be found in the empty flattened data. This caused default values to be lost. Only call updateTreeValue() when flattenData has items, so that modelValue is preserved until the actual tree data arrives. Fixes #6522
2026-05-16 10:41:42 +08:00
---
fix: preserve tree default value when treeData starts empty
Reference in New Issue
Copy Permalink