File tree 4 files changed +6
-4
lines changed
4 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -69,6 +69,8 @@ const TextWidget = ({
69
69
} : React . FocusEvent < HTMLInputElement > ) => onFocus ( id , value ) ;
70
70
71
71
const uiProps = _pick ( options . props || { } , allowedProps ) ;
72
+ const inputType = schema . type === 'string' ? 'text' : `${ schema . type } `
73
+
72
74
return (
73
75
< TextField
74
76
id = { id }
@@ -78,7 +80,7 @@ const TextWidget = ({
78
80
disabled = { disabled }
79
81
readOnly = { readonly }
80
82
name = { name }
81
- type = { schema . type as string }
83
+ type = { inputType as string }
82
84
value = { value ? value : "" }
83
85
onChange = { _onChange as any }
84
86
onBlur = { _onBlur }
Original file line number Diff line number Diff line change @@ -258,7 +258,7 @@ exports[`array fields fixed array 1`] = `
258
258
onInput = { [Function ]}
259
259
readOnly = { false }
260
260
required = { true }
261
- type = " string "
261
+ type = " text "
262
262
value = " "
263
263
/>
264
264
</div >
Original file line number Diff line number Diff line change @@ -387,7 +387,7 @@ exports[`single fields string field regular 1`] = `
387
387
onFocus = { [Function ]}
388
388
onInput = { [Function ]}
389
389
readOnly = { false }
390
- type = " string "
390
+ type = " text "
391
391
value = " "
392
392
/>
393
393
</div >
Original file line number Diff line number Diff line change @@ -59,7 +59,7 @@ exports[`object fields object 1`] = `
59
59
onInput = { [Function ]}
60
60
readOnly = { false }
61
61
required = { false }
62
- type = " string "
62
+ type = " text "
63
63
value = " "
64
64
/>
65
65
</div >
You can’t perform that action at this time.
0 commit comments