fix(DirectoryTree): `selectedKeys` updating (#5732)
- In `multiple` mode, it should emit single value instead of multiple values on single click.pull/5750/head
parent
62dc2402f3
commit
bddf64e0ad
|
@ -239,7 +239,7 @@ export default defineComponent({
|
||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
// Single click
|
// Single click
|
||||||
newSelectedKeys = keys;
|
newSelectedKeys = [key];
|
||||||
lastSelectedKey.value = key;
|
lastSelectedKey.value = key;
|
||||||
cachedSelectedKeys.value = newSelectedKeys;
|
cachedSelectedKeys.value = newSelectedKeys;
|
||||||
newEvent.selectedNodes = convertDirectoryKeysToNodes(
|
newEvent.selectedNodes = convertDirectoryKeysToNodes(
|
||||||
|
|
Loading…
Reference in New Issue