File tree 2 files changed +6
-3
lines changed
2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -73,10 +73,13 @@ const AutoComplete = {
73
73
this . select = node ;
74
74
} ,
75
75
getInputElement ( ) {
76
- const { placeholder } = this ;
77
76
const children = getSlot ( this ) ;
78
77
const element = children . length ? children [ 0 ] : < Input lazy = { false } /> ;
79
- return < InputElement placeholder = { placeholder } > { element } </ InputElement > ;
78
+ return (
79
+ < InputElement placeholder = { this . placeholder } { ...element . props } >
80
+ { element }
81
+ </ InputElement >
82
+ ) ;
80
83
} ,
81
84
82
85
focus ( ) {
Original file line number Diff line number Diff line change @@ -775,7 +775,7 @@ const Select = {
775
775
) ;
776
776
777
777
const inputElement = props . getInputElement ? props . getInputElement ( ) : defaultInput ;
778
- const inputCls = classnames ( inputElement . class , {
778
+ const inputCls = classnames ( inputElement . props && inputElement . props . class , {
779
779
[ `${ props . prefixCls } -search__field` ] : true ,
780
780
} ) ;
781
781
const inputEvents = getEvents ( inputElement ) ;
You can’t perform that action at this time.
0 commit comments