From be9f2f5420352a2f6a26292a9adb158fc25d6c27 Mon Sep 17 00:00:00 2001 From: chaishi <974383157@qq.com> Date: Thu, 9 Feb 2023 17:30:48 +0800 Subject: [PATCH 1/2] fix(tree-select): single tree-select can not checked --- src/tree-select/tree-select.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/tree-select/tree-select.tsx b/src/tree-select/tree-select.tsx index 3351c61a7..a88d13240 100644 --- a/src/tree-select/tree-select.tsx +++ b/src/tree-select/tree-select.tsx @@ -124,6 +124,7 @@ export default defineComponent({ class={`${this.classPrefix}-tree-select`} {...{ props: { + keys: this.tKeys, value: this.nodeInfo, inputValue: this.innerInputValue, popupVisible: this.innerVisible, From 11cd25808fa1815b5bdcf38e5a6d9071fadf6087 Mon Sep 17 00:00:00 2001 From: chaishi <974383157@qq.com> Date: Thu, 9 Feb 2023 17:45:45 +0800 Subject: [PATCH 2/2] fix(tree-select): trigger show --- src/tree-select/useTreeSelect.ts | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/tree-select/useTreeSelect.ts b/src/tree-select/useTreeSelect.ts index 5411a5037..10cbab758 100644 --- a/src/tree-select/useTreeSelect.ts +++ b/src/tree-select/useTreeSelect.ts @@ -267,10 +267,6 @@ export default function useTreeSelect(props: TdTreeSelectProps, context: SetupCo const onInnerFocus: SelectInputProps['onFocus'] = (_, ctx) => { props.onFocus?.({ value: treeSelectValue.value, e: ctx.e }); context.emit('focus', { value: treeSelectValue.value, e: ctx.e }); - // open popup on focus, used for keyboard event - if (innerVisible.value !== true) { - setInnerVisible(true, { ...ctx, trigger: 'trigger-element-focus' }); - } }; const onInnerBlur: SelectInputProps['onBlur'] = (_, ctx) => {