mirror of
https://gitee.com/ant-design-vue/ant-design-vue.git
synced 2024-12-02 12:07:54 +08:00
fix(DirectoryTree): selectedKeys
updating (#5732)
- In `multiple` mode, it should emit single value instead of multiple values on single click.
This commit is contained in:
parent
62dc2402f3
commit
bddf64e0ad
@ -239,7 +239,7 @@ export default defineComponent({
|
||||
);
|
||||
} else {
|
||||
// Single click
|
||||
newSelectedKeys = keys;
|
||||
newSelectedKeys = [key];
|
||||
lastSelectedKey.value = key;
|
||||
cachedSelectedKeys.value = newSelectedKeys;
|
||||
newEvent.selectedNodes = convertDirectoryKeysToNodes(
|
||||
|
Loading…
Reference in New Issue
Block a user