Skip to content

Commit

Permalink
Fix #6749: Fix TreeSelect filter for space key (#6754)
Browse files Browse the repository at this point in the history
* Fix #6749: Fix TreeSelect filter for space key

* Fix #6749: format
  • Loading branch information
Rekl0w authored Jun 13, 2024
1 parent d3da717 commit 749f896
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions components/lib/treeselect/TreeSelect.js
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,6 @@ export const TreeSelect = React.memo(

break;

case 'Space':
case 'Enter':
case 'NumpadEnter':
event.preventDefault();
Expand Down Expand Up @@ -856,7 +855,15 @@ export const TreeSelect = React.memo(
const rootProps = mergeProps(
{
ref: elementRef,
className: classNames(props.className, cx('root', { context, focusedState, overlayVisibleState, isValueEmpty })),
className: classNames(
props.className,
cx('root', {
context,
focusedState,
overlayVisibleState,
isValueEmpty
})
),
style: props.style,
onClick: onClick
},
Expand Down

0 comments on commit 749f896

Please sign in to comment.