@@ -20,8 +20,8 @@ class WithOptions extends PureComponent {
20
20
disabled : false ,
21
21
readOnly : false ,
22
22
hierarchical : false ,
23
- placeholderText : 'Choose...' ,
24
- inlinePlaceholderText : 'Search...' ,
23
+ placeholder : 'Choose...' ,
24
+ inlineSearchPlaceholder : 'Search...' ,
25
25
}
26
26
}
27
27
@@ -50,8 +50,8 @@ class WithOptions extends PureComponent {
50
50
readOnly,
51
51
showDropdown,
52
52
inlineSearchInput,
53
- placeholderText ,
54
- inlinePlaceholderText ,
53
+ placeholder ,
54
+ inlineSearchPlaceholder ,
55
55
} = this . state
56
56
57
57
return (
@@ -88,19 +88,21 @@ class WithOptions extends PureComponent {
88
88
</ select >
89
89
</ div >
90
90
< div style = { { marginBottom : '10px' } } >
91
- < label htmlFor = "placeholderText " > Placeholder text: </ label >
91
+ < label htmlFor = "placeholder " > Placeholder text: </ label >
92
92
< input
93
- id = "placeholderText"
94
- value = { placeholderText }
95
- onChange = { e => this . setState ( { placeholderText : e . target . value } ) }
93
+ id = "placeholder"
94
+ type = "text"
95
+ value = { placeholder }
96
+ onChange = { e => this . setState ( { placeholder : e . target . value } ) }
96
97
/>
97
98
</ div >
98
99
< div style = { { marginBottom : '10px' } } >
99
100
< label htmlFor = "inlinePlaceholderText" > Inline placeholder text: </ label >
100
101
< input
101
- id = "inlinePlaceholderText"
102
- value = { inlinePlaceholderText }
103
- onChange = { e => this . setState ( { inlinePlaceholderText : e . target . value } ) }
102
+ id = "inlineSearchPlaceholder"
103
+ type = "text"
104
+ value = { inlineSearchPlaceholder }
105
+ onChange = { e => this . setState ( { inlineSearchPlaceholder : e . target . value } ) }
104
106
/>
105
107
</ div >
106
108
< Checkbox
@@ -150,11 +152,9 @@ class WithOptions extends PureComponent {
150
152
showPartiallySelected = { showPartiallySelected }
151
153
disabled = { disabled }
152
154
readOnly = { readOnly }
153
- placeholder = { placeholderText }
154
- inlineSearchPlaceholder = { inlinePlaceholderText }
155
155
inlineSearchInput = { inlineSearchInput }
156
156
showDropdown = { showDropdown }
157
- texts = { { label : 'Demo Dropdown' } }
157
+ texts = { { label : 'Demo Dropdown' , placeholder , inlineSearchPlaceholder } }
158
158
/>
159
159
</ div >
160
160
</ div >
0 commit comments