Skip to content

Commit c861926

Browse files
FE: Topics: make the topic name field focused (#2986)
Co-authored-by: Roman Zabaluev <[email protected]>
1 parent 9b76d59 commit c861926

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

kafka-ui-react-app/src/components/Connect/New/New.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,7 @@ const New: React.FC = () => {
133133
inputSize="M"
134134
placeholder="Connector Name"
135135
name="name"
136+
autoFocus
136137
autoComplete="off"
137138
disabled={isSubmitting}
138139
/>

kafka-ui-react-app/src/components/Schemas/New/New.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@ const New: React.FC = () => {
103103
<Input
104104
inputSize="M"
105105
placeholder="Schema Name"
106+
autoFocus
106107
name="subject"
107108
autoComplete="off"
108109
disabled={isSubmitting}

kafka-ui-react-app/src/components/Topics/shared/Form/TopicForm.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ const TopicForm: React.FC<Props> = ({
9393
<InputLabel htmlFor="topicFormName">Topic Name *</InputLabel>
9494
<Input
9595
id="topicFormName"
96+
autoFocus
9697
name="name"
9798
placeholder="Topic Name"
9899
defaultValue={topicName}

0 commit comments

Comments
 (0)