@@ -123,30 +123,30 @@ class Autocomplete extends React.Component {
123
123
}
124
124
125
125
static defaultProps = {
126
- value : '' ,
127
- wrapperProps : { } ,
128
- wrapperStyle : {
129
- display : 'inline-block'
130
- } ,
131
- inputProps : { } ,
132
- onChange ( ) { } ,
133
- onSelect ( ) { } ,
134
- renderMenu ( items , value , style ) {
135
- return < div style = { { ...style , ...this . menuStyle } } children = { items } />
136
- } ,
137
- menuStyle : {
138
- borderRadius : '3px' ,
139
- boxShadow : '0 2px 12px rgba(0, 0, 0, 0.1)' ,
140
- background : 'rgba(255, 255, 255, 0.9)' ,
141
- padding : '2px 0' ,
142
- fontSize : '90%' ,
143
- position : 'fixed' ,
144
- overflow : 'auto' ,
145
- maxHeight : '50%' , // TODO: don't cheat, let it flow to the bottom
146
- } ,
147
- autoHighlight : true ,
148
- onMenuVisibilityChange ( ) { } ,
149
- }
126
+ value : '' ,
127
+ wrapperProps : { } ,
128
+ wrapperStyle : {
129
+ display : 'inline-block'
130
+ } ,
131
+ inputProps : { } ,
132
+ onChange ( ) { } ,
133
+ onSelect ( ) { } ,
134
+ renderMenu ( items , value , style ) {
135
+ return < div style = { { ...style , ...this . menuStyle } } children = { items } />
136
+ } ,
137
+ menuStyle : {
138
+ borderRadius : '3px' ,
139
+ boxShadow : '0 2px 12px rgba(0, 0, 0, 0.1)' ,
140
+ background : 'rgba(255, 255, 255, 0.9)' ,
141
+ padding : '2px 0' ,
142
+ fontSize : '90%' ,
143
+ position : 'fixed' ,
144
+ overflow : 'auto' ,
145
+ maxHeight : '50%' , // TODO: don't cheat, let it flow to the bottom
146
+ } ,
147
+ autoHighlight : true ,
148
+ onMenuVisibilityChange ( ) { } ,
149
+ }
150
150
151
151
constructor ( props ) {
152
152
super ( props )
0 commit comments