remove unused ant-select-show-search className, close #4859

This commit is contained in:
afc163 2017-02-14 20:27:48 +08:00
parent a0c1d22d92
commit c296d1a918
4 changed files with 5 additions and 7 deletions

View File

@ -126,7 +126,7 @@ exports[`test renders ./components/locale-provider/demo/all.md correctly 1`] = `
<div
class="example">
<div
class="ant-select-show-search ant-select ant-select-enabled"
class="ant-select ant-select-enabled"
style="width:200px;">
<div
aria-autocomplete="list"

View File

@ -323,7 +323,7 @@ exports[`test renders ./components/select/demo/optgroup.md correctly 1`] = `
exports[`test renders ./components/select/demo/search.md correctly 1`] = `
<div
class="ant-select-show-search ant-select ant-select-enabled"
class="ant-select ant-select-enabled"
style="width:200px;">
<div
aria-autocomplete="list"

View File

@ -1,6 +1,6 @@
---
order: 5
title:
title:
zh-CN: 分组
en-US: Option Group
---
@ -23,9 +23,9 @@ function handleChange(value) {
}
ReactDOM.render(
<Select defaultValue="lucy"
<Select
defaultValue="lucy"
style={{ width: 200 }}
showSearch={false}
onChange={handleChange}
>
<OptGroup label="Manager">

View File

@ -92,7 +92,6 @@ export default class Select extends React.Component<SelectProps, any> {
className = '',
size,
combobox,
showSearch,
} = this.props;
let { notFoundContent = 'Not Found', optionLabelProp } = this.props;
@ -100,7 +99,6 @@ export default class Select extends React.Component<SelectProps, any> {
const cls = classNames({
[`${prefixCls}-lg`]: size === 'large',
[`${prefixCls}-sm`]: size === 'small',
[`${prefixCls}-show-search`]: showSearch,
}, className);
const { antLocale } = this.context;