fix: tree-select enter error, close #5217

pull/5223/head
tangjinzhou 3 years ago
parent 5cc603d84c
commit b952038db1

@ -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),

Loading…
Cancel
Save