Logo
Explore Help
Register Sign In
lq/lgp-admin-plus
1
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

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
Powered by Gitea Version: 25.5.0 Page: 46ms Template: 1ms
English
English 简体中文 繁體中文(台灣) 繁體中文(香港)
Licenses API