Browse Source

#2261 "Value" field is focused with adding the Custom Parameter in a Topic (#2469)

KriKiparoidze 2 years ago
parent
commit
6de2eaeab1

+ 3 - 1
kafka-ui-react-app/src/components/Topics/shared/Form/CustomParams/CustomParams.tsx

@@ -57,7 +57,9 @@ const CustomParams: React.FC<CustomParamsProps> = ({ isSubmitting }) => {
           type="button"
           buttonSize="M"
           buttonType="secondary"
-          onClick={() => append({ name: '', value: '' })}
+          onClick={() =>
+            append({ name: '', value: '' }, { shouldFocus: false })
+          }
         >
           <PlusIcon />
           Add Custom Parameter