fix: tree-select enter error, close #5217
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…
Reference in New Issue