From b5446d632a161c2fe17da53faf37eb32acdce2f0 Mon Sep 17 00:00:00 2001 From: afc163 Date: Wed, 12 Oct 2016 11:19:01 +0800 Subject: [PATCH] Remove wrong dropdownStyle imported by #3344, close #3386 --- components/select/index.tsx | 5 ----- 1 file changed, 5 deletions(-) diff --git a/components/select/index.tsx b/components/select/index.tsx index b5c5d19941..1b7e667437 100644 --- a/components/select/index.tsx +++ b/components/select/index.tsx @@ -2,7 +2,6 @@ import React from 'react'; import { PropTypes } from 'react'; import RcSelect, { Option, OptGroup } from 'rc-select'; import classNames from 'classnames'; -import assign from 'object-assign'; export type SelectValue = string | any[] | { key: string, label: React.ReactNode } | Array<{ key: string, label: React.ReactNode }>; @@ -88,7 +87,6 @@ export default class Select extends React.Component { size, combobox, showSearch, - dropdownStyle, } = this.props; let { notFoundContent = 'Not Found', optionLabelProp } = this.props; @@ -118,9 +116,6 @@ export default class Select extends React.Component { className={cls} optionLabelProp={optionLabelProp || 'children'} notFoundContent={notFoundContent} - dropdownStyle={assign({}, dropdownStyle, { - display: (!notFoundContent && !combobox) ? 'none' : '', - })} /> ); }