소스 검색

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