demo: fix select showSearch demo placeholder, close #11325

This commit is contained in:
afc163 2018-07-18 15:57:04 +08:00
parent e7242f4924
commit 782abe7bb6
2 changed files with 2 additions and 7 deletions

View File

@ -407,16 +407,11 @@ exports[`renders ./components/select/demo/search-box.md correctly 1`] = `
> >
<div <div
class="ant-select-selection__placeholder" class="ant-select-selection__placeholder"
style="display:none;user-select:none;-webkit-user-select:none" style="display:block;user-select:none;-webkit-user-select:none"
unselectable="on" unselectable="on"
> >
input search text input search text
</div> </div>
<div
class="ant-select-selection-selected-value"
style="display:block;opacity:1"
title=""
/>
<div <div
class="ant-select-search ant-select-search--inline" class="ant-select-search ant-select-search--inline"
style="display:none" style="display:none"

View File

@ -58,7 +58,7 @@ function fetch(value, callback) {
class SearchInput extends React.Component { class SearchInput extends React.Component {
state = { state = {
data: [], data: [],
value: '', value: undefined,
} }
handleSearch = (value) => { handleSearch = (value) => {