fix: tree-select enter error, close #5217

pull/5223/head
tangjinzhou 2022-01-27 17:07:23 +08:00
parent 5cc603d84c
commit b952038db1
1 changed files with 1 additions and 1 deletions

View File

@ -152,7 +152,7 @@ export default defineComponent({
// >>> Select item
case KeyCode.ENTER: {
const { selectable, value } = activeEntity.value?.node || {};
if (selectable !== false) {
if (activeEntity.value && selectable !== false) {
onInternalSelect(null, {
node: { key: activeKey.value },
selected: !legacyContext.checkedKeys.includes(value),