Skip to content

Commit 34b185b

Browse files
committed
[fixed] incorrect style merging
1 parent 89c1398 commit 34b185b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Autocomplete.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ let Autocomplete = React.createClass({
2121
onChange () {},
2222
onSelect (value, item) {},
2323
renderMenu (items, value, style) {
24-
return <div style={{style, ...this.menuStyle}} children={items}/>
24+
return <div style={{...style, ...this.menuStyle}} children={items}/>
2525
},
2626
shouldItemRender () { return true },
2727
menuStyle: {

0 commit comments

Comments
 (0)