Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix passing dropdownClassName to tree-select
  • Loading branch information
yesmeck committed Mar 6, 2018
1 parent 56e4ce0 commit 69b154f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion components/tree-select/index.tsx
Expand Up @@ -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;
Expand Down Expand Up @@ -52,6 +51,7 @@ export default class TreeSelect extends React.Component<TreeSelectProps, any> {
size,
notFoundContent,
dropdownStyle,
dropdownClassName,
...restProps,
} = this.props;

Expand All @@ -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 }}
Expand Down

0 comments on commit 69b154f

Please sign in to comment.