We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5306c99 commit 60c6f66Copy full SHA for 60c6f66
src/tree/hooks/useTreeScroll.ts
@@ -86,7 +86,7 @@ export default function useTreeScroll(state: TypeTreeState) {
86
return;
87
}
88
index = allNodes.value?.findIndex((item) =>
89
- [get(item.data, 'key'), get(item.data, 'value')].includes(params.key),
+ [get(item.data, 'key'), get(item.data, props.keys?.['value'] || 'value')].includes(params.key),
90
);
91
if (index < 0) {
92
log.error('Tree', `${params.key} does not exist in data, check \`key\` or \`data\` please.`);
0 commit comments