Logo
Explore Help
Register Sign In
xkyy/xk-admin
1
0
Fork 0
You've already forked xk-admin
Code Issues Pull Requests Actions 3 Packages Projects Releases Wiki Activity
Files
f55b18ffd71c1e497905e6516425fb7bf4dfa6d3
xk-admin/.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: 31ms Template: 1ms
English
English 简体中文 繁體中文(台灣) 繁體中文(香港)
Licenses API