Permalink
Browse files

Fix passing dropdownClassName to tree-select

  • Loading branch information...
yesmeck committed Mar 6, 2018
1 parent 56e4ce0 commit 69b154f9a9cfa5f2d89a82b6ed730d4d8793de73
Showing with 2 additions and 1 deletion.
  1. +2 −1 components/tree-select/index.tsx
@@ -19,7 +19,6 @@ export default class TreeSelect extends React.Component<TreeSelectProps, any> {
transitionName: 'slide-up',
choiceTransitionName: 'zoom',
showSearch: false,
dropdownClassName: 'ant-select-tree-dropdown',
};
private rcTreeSelect: any;
@@ -52,6 +51,7 @@ export default class TreeSelect extends React.Component<TreeSelectProps, any> {
size,
notFoundContent,
dropdownStyle,
dropdownClassName,
...restProps,
} = this.props;
@@ -67,6 +67,7 @@ export default class TreeSelect extends React.Component<TreeSelectProps, any> {
return (
<RcTreeSelect
{...restProps}
dropdownClassName={classNames(dropdownClassName, `${prefixCls}-tree-dropdown`)}
prefixCls={prefixCls}
className={cls}
dropdownStyle={{ maxHeight: '100vh', overflow: 'auto', ...dropdownStyle }}

0 comments on commit 69b154f

Please sign in to comment.