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
|
||||
isActive={parseFloat(watchedValue) === value}
|
||||
type="button"
|
||||
onClick={() => setValue(inputName, value)}
|
||||
onClick={() =>
|
||||
setValue(inputName, value, {
|
||||
shouldDirty: true,
|
||||
})
|
||||
}
|
||||
>
|
||||
{text}
|
||||
</S.Button>
|
||||
|
|
Loading…
Add table
Reference in a new issue