admin-vben/packages/@core/ui-kit/shadcn-ui
Akuria ca5931e8c4
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
..
src fix: preserve tree default value when treeData starts empty (#7908) 2026-05-16 10:41:42 +08:00
components.json feat: migrate to Tailwind CSS v4 (#7614) 2026-03-10 05:08:45 +08:00
package.json chore(tsdown): remove unbuild leftovers 2026-03-15 22:04:48 +08:00
tsconfig.json feat: add tsgolint 2026-03-13 23:13:01 +08:00