@@ -85,15 +85,15 @@ export interface IValidationResult {
85
85
86
86
export interface IInputProps < T >
87
87
extends IProps < T > ,
88
- Omit < InputHTMLAttributes < HTMLInputElement > , "defaultValue" | "type" > {
88
+ Omit < InputHTMLAttributes < HTMLInputElement > , "defaultValue" | "type" > {
89
89
// The element to create. Defaults to "input".
90
90
element ?: "input" ;
91
91
}
92
92
93
93
// TODO: consider removing SelectHTMLAttributes extension and use custom props
94
94
interface ISelectProps < FieldValue >
95
95
extends IProps < FieldValue > ,
96
- Omit < SelectHTMLAttributes < HTMLSelectElement > , "defaultValue" | "type" > {
96
+ Omit < SelectHTMLAttributes < HTMLSelectElement > , "defaultValue" | "type" > {
97
97
// To define options for a select, use <Field><option ... /></Field>
98
98
element : "select" ;
99
99
options ?: OptionType [ ] ;
@@ -102,7 +102,7 @@ interface ISelectProps<FieldValue>
102
102
103
103
interface ITextareaProps < FieldValue >
104
104
extends IProps < FieldValue > ,
105
- Omit < TextareaHTMLAttributes < HTMLTextAreaElement > , "defaultValue" > {
105
+ Omit < TextareaHTMLAttributes < HTMLTextAreaElement > , "defaultValue" > {
106
106
element : "textarea" ;
107
107
}
108
108
@@ -235,6 +235,7 @@ export default class Field<FieldValue> extends React.PureComponent<
235
235
< Select
236
236
{ ...( inputProps_ as any ) }
237
237
{ ...fieldProps }
238
+ isSearchable = { false }
238
239
onChange = { ( e ) => {
239
240
// trigger both handlers if set
240
241
// fieldProps.onChange?.(e); // exclude ecause we only use this for mx_Login_type_container. Perhaps better if we refactor that to a regular <select>
0 commit comments