mirror of
https://github.com/ant-design/ant-design.git
synced 2025-06-07 09:26:06 +08:00
demo: fix select showSearch demo placeholder, close #11325
This commit is contained in:
parent
e7242f4924
commit
782abe7bb6
@ -407,16 +407,11 @@ exports[`renders ./components/select/demo/search-box.md correctly 1`] = `
|
||||
>
|
||||
<div
|
||||
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"
|
||||
>
|
||||
input search text
|
||||
</div>
|
||||
<div
|
||||
class="ant-select-selection-selected-value"
|
||||
style="display:block;opacity:1"
|
||||
title=""
|
||||
/>
|
||||
<div
|
||||
class="ant-select-search ant-select-search--inline"
|
||||
style="display:none"
|
||||
|
@ -58,7 +58,7 @@ function fetch(value, callback) {
|
||||
class SearchInput extends React.Component {
|
||||
state = {
|
||||
data: [],
|
||||
value: '',
|
||||
value: undefined,
|
||||
}
|
||||
|
||||
handleSearch = (value) => {
|
||||
|
Loading…
Reference in New Issue
Block a user