File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -70,12 +70,16 @@ const Input: React.RefForwardingComponent<InputRef, InputProps> = (
70
70
} = originProps ;
71
71
72
72
inputNode = React . cloneElement ( inputNode , {
73
+ type : 'search' ,
74
+ ...originProps ,
75
+
76
+ // Override over origin props
73
77
id,
74
78
ref : composeRef ( ref , originRef as any ) ,
75
79
disabled,
76
80
tabIndex,
77
81
autoComplete : autoComplete || 'off' ,
78
- type : 'search' ,
82
+
79
83
autoFocus,
80
84
className : classNames ( `${ prefixCls } -selection-search-input` , inputNode ?. props ?. className ) ,
81
85
@@ -92,9 +96,6 @@ const Input: React.RefForwardingComponent<InputRef, InputProps> = (
92
96
readOnly : ! editable ,
93
97
unselectable : ! editable ? 'on' : null ,
94
98
95
- ...originProps ,
96
-
97
- // Override over origin props
98
99
style : { ...style , opacity : editable ? null : 0 } ,
99
100
100
101
onKeyDown : ( event : React . KeyboardEvent < HTMLElement > ) => {
You can’t perform that action at this time.
0 commit comments