Skip to content

Commit

Permalink
fix(DirectoryTree): selectedKeys updating
Browse files Browse the repository at this point in the history
- In `multiple` mode, it should emit single value instead of multiple values on single click.
  • Loading branch information
doommm committed Jun 20, 2022
1 parent b3dafb9 commit 482d758
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/tree/DirectoryTree.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ export default defineComponent({
);
} else {
// Single click
newSelectedKeys = keys;
newSelectedKeys = [key];
lastSelectedKey.value = key;
cachedSelectedKeys.value = newSelectedKeys;
newEvent.selectedNodes = convertDirectoryKeysToNodes(
Expand Down

0 comments on commit 482d758

Please sign in to comment.