From e67d940981612753b406aa6273514c0b37c04788 Mon Sep 17 00:00:00 2001 From: Hrant Abrahamyan <113341474+habrahamyanpro@users.noreply.github.com> Date: Wed, 26 Oct 2022 12:07:03 +0400 Subject: [PATCH] added shouldDirty (#2776) --- .../src/components/Topics/shared/Form/TimeToRetainBtn.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/kafka-ui-react-app/src/components/Topics/shared/Form/TimeToRetainBtn.tsx b/kafka-ui-react-app/src/components/Topics/shared/Form/TimeToRetainBtn.tsx index 2364d90516..8746eef792 100644 --- a/kafka-ui-react-app/src/components/Topics/shared/Form/TimeToRetainBtn.tsx +++ b/kafka-ui-react-app/src/components/Topics/shared/Form/TimeToRetainBtn.tsx @@ -18,7 +18,11 @@ const TimeToRetainBtn: React.FC = ({ inputName, text, value }) => { setValue(inputName, value)} + onClick={() => + setValue(inputName, value, { + shouldDirty: true, + }) + } > {text}