diff --git a/components/lib/treeselect/TreeSelect.js b/components/lib/treeselect/TreeSelect.js index e8aa259892..ae9aadb40c 100644 --- a/components/lib/treeselect/TreeSelect.js +++ b/components/lib/treeselect/TreeSelect.js @@ -208,7 +208,6 @@ export const TreeSelect = React.memo( break; - case 'Space': case 'Enter': case 'NumpadEnter': event.preventDefault(); @@ -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 },