File tree Expand file tree Collapse file tree 5 files changed +7
-0
lines changed
portal-ui/src/screens/Console
Common/FormComponents/InputBoxWrapper Expand file tree Collapse file tree 5 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -290,6 +290,7 @@ const AddBucket = ({
290
290
< InputBoxWrapper
291
291
id = "bucket-name"
292
292
name = "bucket-name"
293
+ autoFocus = { true }
293
294
onChange = { ( event : React . ChangeEvent < HTMLInputElement > ) => {
294
295
addBucketName ( event . target . value ) ;
295
296
} }
Original file line number Diff line number Diff line change @@ -59,6 +59,7 @@ interface InputBoxProps {
59
59
extraInputProps ?: StandardInputProps [ "inputProps" ] ;
60
60
noLabelMinWidth ?: boolean ;
61
61
pattern ?: string ;
62
+ autoFocus ?: boolean ;
62
63
}
63
64
64
65
const styles = ( theme : Theme ) =>
@@ -123,6 +124,7 @@ const InputBoxWrapper = ({
123
124
overlayAction,
124
125
noLabelMinWidth = false ,
125
126
pattern = "" ,
127
+ autoFocus = false ,
126
128
classes,
127
129
} : InputBoxProps ) => {
128
130
let inputProps : any = { "data-index" : index , ...extraInputProps } ;
@@ -176,6 +178,7 @@ const InputBoxWrapper = ({
176
178
name = { name }
177
179
fullWidth
178
180
value = { value }
181
+ autoFocus = { autoFocus }
179
182
disabled = { disabled }
180
183
onChange = { onChange }
181
184
type = { type }
Original file line number Diff line number Diff line change @@ -206,6 +206,7 @@ const AddGroup = ({
206
206
id = "group-name"
207
207
name = "group-name"
208
208
label = "Group Name"
209
+ autoFocus = { true }
209
210
value = { groupName }
210
211
onChange = { ( e : React . ChangeEvent < HTMLInputElement > ) => {
211
212
setGroupName ( e . target . value ) ;
Original file line number Diff line number Diff line change @@ -137,6 +137,7 @@ const AddPolicy = ({
137
137
name = "policy-name"
138
138
label = "Policy Name"
139
139
placeholder = "Enter Policy Name"
140
+ autoFocus = { true }
140
141
onChange = { ( e : React . ChangeEvent < HTMLInputElement > ) => {
141
142
setPolicyName ( e . target . value ) ;
142
143
} }
Original file line number Diff line number Diff line change @@ -212,6 +212,7 @@ const AddUser = ({
212
212
name = "accesskey-input"
213
213
label = "Access Key"
214
214
value = { accessKey }
215
+ autoFocus = { true }
215
216
onChange = { ( e : React . ChangeEvent < HTMLInputElement > ) => {
216
217
setAccessKey ( e . target . value ) ;
217
218
} }
You can’t perform that action at this time.
0 commit comments