fix: tree-select enter error, close #5217
parent
5cc603d84c
commit
b952038db1
|
@ -152,7 +152,7 @@ export default defineComponent({
|
||||||
// >>> Select item
|
// >>> Select item
|
||||||
case KeyCode.ENTER: {
|
case KeyCode.ENTER: {
|
||||||
const { selectable, value } = activeEntity.value?.node || {};
|
const { selectable, value } = activeEntity.value?.node || {};
|
||||||
if (selectable !== false) {
|
if (activeEntity.value && selectable !== false) {
|
||||||
onInternalSelect(null, {
|
onInternalSelect(null, {
|
||||||
node: { key: activeKey.value },
|
node: { key: activeKey.value },
|
||||||
selected: !legacyContext.checkedKeys.includes(value),
|
selected: !legacyContext.checkedKeys.includes(value),
|
||||||
|
|
Loading…
Reference in New Issue