Skip to content

Commit

Permalink
fix: tree-select enter error, close #5217
Browse files Browse the repository at this point in the history
  • Loading branch information
tangjinzhou committed Jan 27, 2022
1 parent 5cc603d commit b952038
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/vc-tree-select/OptionList.tsx
Expand Up @@ -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),
Expand Down

0 comments on commit b952038

Please sign in to comment.