Browse Source

added shouldDirty (#2776)

Hrant Abrahamyan 2 years ago
parent
commit
e67d940981

+ 5 - 1
kafka-ui-react-app/src/components/Topics/shared/Form/TimeToRetainBtn.tsx

@@ -18,7 +18,11 @@ const TimeToRetainBtn: React.FC<Props> = ({ inputName, text, value }) => {
     <S.Button
     <S.Button
       isActive={parseFloat(watchedValue) === value}
       isActive={parseFloat(watchedValue) === value}
       type="button"
       type="button"
-      onClick={() => setValue(inputName, value)}
+      onClick={() =>
+        setValue(inputName, value, {
+          shouldDirty: true,
+        })
+      }
     >
     >
       {text}
       {text}
     </S.Button>
     </S.Button>