added shouldDirty (#2776)
This commit is contained in:
parent
e87178136c
commit
e67d940981
1 changed files with 5 additions and 1 deletions
|
@ -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>
|
||||||
|
|
Loading…
Add table
Reference in a new issue