瀏覽代碼

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

KriKiparoidze 2 年之前
父節點
當前提交
6de2eaeab1
共有 1 個文件被更改,包括 3 次插入1 次删除
  1. 3 1
      kafka-ui-react-app/src/components/Topics/shared/Form/CustomParams/CustomParams.tsx

+ 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"
           type="button"
           buttonSize="M"
           buttonSize="M"
           buttonType="secondary"
           buttonType="secondary"
-          onClick={() => append({ name: '', value: '' })}
+          onClick={() =>
+            append({ name: '', value: '' }, { shouldFocus: false })
+          }
         >
         >
           <PlusIcon />
           <PlusIcon />
           Add Custom Parameter
           Add Custom Parameter