Browse Source
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 #6522pull/7919/head
committed by
GitHub
2 changed files with 8 additions and 1 deletions
@ -0,0 +1,5 @@ |
|||
--- |
|||
"@vben-core/shadcn-ui": patch |
|||
--- |
|||
|
|||
fix: preserve tree default value when treeData starts empty |
|||
Loading…
Reference in new issue