This website requires JavaScript.
Explore
Help
Register
Sign In
lq
/
lgp-admin-plus
Watch
1
Star
0
Fork
0
You've already forked lgp-admin-plus
Code
Issues
Pull Requests
Actions
4
Packages
Projects
Releases
Wiki
Activity
Files
d71c81e8ffcb0a33f3e5eebe77024d3eb80d7767
lgp-admin-plus
/
.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