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 3 Packages Projects Releases Wiki Activity
Files
5bbdcffb97d6075ccd68f8bebb0f6205251aea23
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
---
"@vben-core/shadcn-ui": patch
---
fix: preserve tree default value when treeData starts empty
Reference in New Issue Copy Permalink
Powered by Gitea Version: 25.5.0 Page: 32ms Template: 1ms
English
English 简体中文 繁體中文(台灣) 繁體中文(香港)
Licenses API