Remove wrong dropdownStyle imported by #3344, close #3386

This commit is contained in:
afc163 2016-10-12 11:19:01 +08:00
parent c9258fc483
commit b5446d632a

View File

@ -2,7 +2,6 @@ import React from 'react';
import { PropTypes } from 'react'; import { PropTypes } from 'react';
import RcSelect, { Option, OptGroup } from 'rc-select'; import RcSelect, { Option, OptGroup } from 'rc-select';
import classNames from 'classnames'; import classNames from 'classnames';
import assign from 'object-assign';
export type SelectValue = string | any[] | { key: string, label: React.ReactNode } | export type SelectValue = string | any[] | { key: string, label: React.ReactNode } |
Array<{ key: string, label: React.ReactNode }>; Array<{ key: string, label: React.ReactNode }>;
@ -88,7 +87,6 @@ export default class Select extends React.Component<SelectProps, any> {
size, size,
combobox, combobox,
showSearch, showSearch,
dropdownStyle,
} = this.props; } = this.props;
let { notFoundContent = 'Not Found', optionLabelProp } = this.props; let { notFoundContent = 'Not Found', optionLabelProp } = this.props;
@ -118,9 +116,6 @@ export default class Select extends React.Component<SelectProps, any> {
className={cls} className={cls}
optionLabelProp={optionLabelProp || 'children'} optionLabelProp={optionLabelProp || 'children'}
notFoundContent={notFoundContent} notFoundContent={notFoundContent}
dropdownStyle={assign({}, dropdownStyle, {
display: (!notFoundContent && !combobox) ? 'none' : '',
})}
/> />
); );
} }