From 6de2eaeab1f80ac71d63896856c93193ef5cd54e Mon Sep 17 00:00:00 2001 From: KriKiparoidze <92114648+KriKiparoidze@users.noreply.github.com> Date: Mon, 22 Aug 2022 15:11:53 -0500 Subject: [PATCH] #2261 "Value" field is focused with adding the Custom Parameter in a Topic (#2469) --- .../Topics/shared/Form/CustomParams/CustomParams.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/kafka-ui-react-app/src/components/Topics/shared/Form/CustomParams/CustomParams.tsx b/kafka-ui-react-app/src/components/Topics/shared/Form/CustomParams/CustomParams.tsx index 38d95f56c8..a85b4a2fc4 100644 --- a/kafka-ui-react-app/src/components/Topics/shared/Form/CustomParams/CustomParams.tsx +++ b/kafka-ui-react-app/src/components/Topics/shared/Form/CustomParams/CustomParams.tsx @@ -57,7 +57,9 @@ const CustomParams: React.FC = ({ isSubmitting }) => { type="button" buttonSize="M" buttonType="secondary" - onClick={() => append({ name: '', value: '' })} + onClick={() => + append({ name: '', value: '' }, { shouldFocus: false }) + } > Add Custom Parameter